This diagram shows how your client, your server, and Affirm interact:
This schema is relevant for any client-side integration via web or mobile.
The customer and merchant submit order information, the client communicates that information to Affirm, Affirm renders the checkout experience and on loan confirmation by the customer returns a
Your front-end sends the
checkout_token to your server (via POST, GET or a Webhook).
Your server code receives the
checkout_token and then uses it to initiate a charge.
Affirm will host the full checkout experience based on the request details. For the web, use Affirm.js. For mobile, use iOS and/or Android SDKs.
Updated 27 days ago
Ready to collect customer details? Choose your platform to collect, request and tokenize your customer details.