Build protected Stripe checkout in one integration.
EnsureBack gives merchants a Stripe-native buyer protection layer: API keys, domain allowlisting, policy snapshots, escrow lifecycle controls, buyer order access, and dispute entry points.
curl -X POST https://ensureback.com/api/public/protected-checkout \
-H "Authorization: Bearer $ENSUREBACK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"lineItems": [{ "price": "price_123", "quantity": 1 }],
"successUrl": "https://merchant.com/success",
"cancelUrl": "https://merchant.com/cancel",
"orderRef": "ORDER_123",
"customerEmail": "buyer@example.com"
}'Integration path
The shortest production path from merchant account to protected checkout.
Connect Stripe
Authorize EnsureBack to create Stripe Checkout Sessions on your connected Stripe account while keeping payment ownership under your Stripe setup.
Create an API key
Generate a server-side API key. Send it as Authorization: Bearer or x-ensureback-api-key when creating protected checkouts.
Whitelist your checkout domain
Register production and test domains so successUrl and cancelUrl can be validated against your approved origin host.
Create protected checkout
Call POST /api/public/protected-checkout from your backend and redirect the buyer to the returned Stripe Checkout URL.
What developers get
This is not a generic refund button. EnsureBack binds buyer trust directly into checkout, fulfillment, dispute windows, and payout release logic.
- ✓ Stripe Checkout URL creation through a protected endpoint
- ✓ Merchant API key authentication
- ✓ Domain allowlist enforcement
- ✓ Policy snapshot binding per checkout
- ✓ Buyer dashboard and dispute entry flow
- ✓ OpenAPI contract for automation
Public API
Authentication, base URL, request model, response model, and error taxonomy.
Protected Checkout
The core endpoint for Stripe-native buyer protection and policy snapshot binding.
OpenAPI spec
Machine-readable API contract for SDK generation and client testing.
Buyer dashboard
Buyer-facing order access, status tracking, and dispute entry point.