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
string
required
Bearer <access_token>. See Authenticate.string
required
Your account ID
Request body
These are the fields that matter for saving a card. For the full list, see Create a checkout order.object
required
Details of the first payment
boolean
required
Set it to
true to save the card when the payment succeedsResponse body
string
required
"00" when the order was createdstring
required
Response description
boolean
required
Request status
object
required
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.