Skip to main content

Submit customer card details

Step 2 of 7. Collect the customer’s card details on your own page, then send them to Nomba with the orderReference from Create a checkout order. You need to be PCI DSS compliant to handle card details. The card is saved because you set tokenizeCard: true on the order. You don’t need to send saveCard. On its own, saveCard saves the card to the customer’s Nomba checkout, not to your account, so you can’t charge it.

POST /v1/checkout/checkout-card-detail

Headers

This call doesn’t need an Authorization or accountId header.

Request body

string
required
The card details as a JSON string, with cardNumber, cardExpiryMonth, cardExpiryYear, cardCVV and cardPin
string
required
The encryption key if you encrypt cardDetails, otherwise an empty string. See Initialize charge.
string
required
data.orderReference from the create-order response, which is Nomba’s ID for the order
object
required
Details of the customer’s browser or device

Response body

string
required
Response code
string
required
Response description
object
required
When data.responseCode is T0, ask the customer for the OTP and keep data.transactionId for the next step.

Next: Submit card OTP

Send the OTP to complete the first payment.