> ## Documentation Index
> Fetch the complete documentation index at: https://developer.nomba.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Submit card details

> Send the card details your customer entered on your page to pay for the card-saving order.

> [card] [Submit customer card details](https://developer.nomba.com/nomba-api-reference/charge/submit-customer-card-details.md)

**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](https://developer.nomba.com/docs/products/accept-payment/recurring-payments/api/create-checkout-order.md). 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

**cardDetails** `string` *required*

The card details as a JSON string, with `cardNumber`, `cardExpiryMonth`, `cardExpiryYear`, `cardCVV` and `cardPin`

**key** `string` *required*

The encryption key if you encrypt `cardDetails`, otherwise an empty string. See [Initialize charge](https://developer.nomba.com/docs/products/accept-payment/server-to-server.md).

**orderReference** `string` *required*

`data.orderReference` from the create-order response, which is Nomba's ID for the order

**deviceInformation** `object` *required*

Details of the customer's browser or device

#### Response body

**code** `string` *required*

Response code

**description** `string` *required*

Response description

**data** `object` *required*

**object**

**status** `boolean` *required*

`true` when the card details were accepted

**message** `string` *required*

Message to show the customer

**responseCode** `string` *required*

`T0` when the customer must enter the OTP their bank sent them

**transactionId** `string` *required*

The transaction ID. Send it with the OTP in the next step.

**secureAuthenticationData** `object`

3D Secure data, when the bank asks for a 3D Secure check instead of an OTP. See [Initialize charge](https://developer.nomba.com/docs/products/accept-payment/server-to-server.md).

When `data.responseCode` is `T0`, ask the customer for the OTP and keep `data.transactionId` for the next step.

```bash Request theme={null}
curl --request POST \
  --url https://api.nomba.com/v1/checkout/checkout-card-detail \
  --header 'Content-Type: application/json' \
  --data '{
    "cardDetails": "{\"cardNumber\": \"5061000000000000\", \"cardExpiryMonth\": 9, \"cardExpiryYear\": 2031, \"cardCVV\": 123, \"cardPin\": 1234}",
    "key": "",
    "orderReference": "be727ded-aa6e-4b6e-beea-898d4428740a",
    "deviceInformation": {
      "httpBrowserLanguage": "en-GB",
      "httpBrowserJavaEnabled": "true",
      "httpBrowserJavaScriptEnabled": "true",
      "httpBrowserColorDepth": "30",
      "httpBrowserScreenHeight": "900",
      "httpBrowserScreenWidth": "1500",
      "httpBrowserTimeDifference": "-60",
      "userAgentBrowserValue": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)",
      "deviceChannel": "Browser"
    }
  }'
```

```json Success response (200) theme={null}
{
  "code": "00",
  "description": "card details submitted successfully",
  "status": true,
  "data": {
    "status": true,
    "message": "Kindly enter the OTP sent to **********9046",
    "responseCode": "T0",
    "transactionId": "0b572789-0770-44f8-b400-99164ef2712b",
    "secureAuthenticationData": null
  }
}
```

> [card] [Next: Submit card OTP](https://developer.nomba.com/docs/products/accept-payment/recurring-payments/api/submit-card-otp.md)
>
> Send the OTP to complete the first payment.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.