On This Page
Payment Flow
Using Flex Microform to take payments requires a combination of front-end and back-end
integration. You need to collect the cardholder's details in your front-end application,
send these details through the JavaScript library to tokenize card details, and then
complete the transaction using the token with our back-end APIs.
The figure below shows the stages of the payment flow using Flex Microform.
- The customer processes their order on the merchant website.
- The merchant website requests Smartpay Fuse to generate the capture context JWT.
- Smartpay Fuse creates a payment capture context JWT.
- The merchant serves the payment page to the customer.
- Microform JavaScript intitializes with capture context and the customer enters their card details.
- The Microform JavaScript library tokenizes the payment card.
- Smartpay Fuse returns the token.
- The client-side code sends the token to the merchant server.
- The merchant server uses the token to process the payment.