Create an online checkout order
tokenizeCard set to true.
The first payment does two things. It proves that the card is valid and can be charged, and the customer approves the payment with their bank. After that, you can charge the card without the customer re-entering their card details.
POST /v1/checkout/order
Headers
Bearer <access_token>. See Authenticate.Request body
These are the fields that matter for saving a card. For the full list, see Create a checkout order.Response body
Send the customer to checkout
Redirect the customer to thecheckoutLink, or open it in a web view in your app. The customer enters their card details and completes any checks their bank asks for, such as an OTP. When the payment succeeds, Nomba saves the card. You don’t need to make any more API calls.
Choose the amount for the first payment
If the first payment is the customer’s first bill, such as the first month of a subscription, charge the real amount. If you only need the payment to save the card, charge a small amount. Then refund it, or give the customer the same value in your app, such as wallet credit. Nomba doesn’t set a minimum amount, but some banks decline very small card payments, so test the amount you plan to use.Next: Get and store the card token
Read the token from the webhook and save it with your customer.