Embedded Payment
Embedded mode integrates the Sangho payment form directly into your page, with no redirect. The buyer stays on your site throughout the entire process.
Complete flow
- Server: Create a Payment Intent,
return the
client_secret
- Server: Create a Payment Intent,
return the
- 2. Frontend: Load the Sangho JS SDK with your public key
- 3. Frontend: Mount the form inside a
div usingsangho.checkout.mount() - 4. Buyer: Enter their details and pay
- 5. Frontend:
onSuccesscallback with transaction data - 6. Server: Confirm via
payment_intent.succeededwebhook
Hosted Fields (cards)
For bank cards, the card number, expiration, and CVV fields are secure iframes (Braintree Hosted Fields). No card data ever passes through your server.