The Payments API enables you to process payments through the store’s connected payment gateway. Merchants can receive a payment for an order that was created using either the Checkout V3 API or the Orders API.
The API extends the Checkout API by finalizing orders with a payment. With the Payments API, it is possible to completely process an order from cart to purchase on an external application.
https://api.bigcommerce.com/stores/{{store_hash}}/v3/payments/access_tokenshttps://payments.bigcommerce.com/stores/{{store_hash}}/paymentsYou can process payments charged to either of the following two main forms of payment
The API flow does not currently support hosted, offsite, or wallet-type providers such as Amazon Pay.
There are three steps to using a stored card to make a payment.
To use stored cards with the Payments API or the Checkout SDK make sure both the payment gateway and the store are compatible.
The payment gateway and store are compatible if the following apply:
Follow the steps below to enable the stored cards setting in the control panel:
For more information on enabling stored cards, see Enabling Stored Credit Cards.
There are two steps to using a credit card to make a payment.
The payment gateway your application uses must be able to send raw card data through our API. Before beginning development, verify that your gateway is listed as a compatible payment gateway or select one that is.
Attempting to process a payment through the API using the full credit card information may fail if the card issuer requires 3DS authentication. In that case, the card must be saved through a shopper-initiated transaction before it can be charged using the Payments API.
A GET request to /payments/methods returns a list of accepted payment methods based on the order_id.
Required Fields
order_idExample:
Use to get the token for stored cards.

Make note of the ID of the payment method to use in the payment processing request. For a stored instrument, also make note of the token.
This endpoint provides the capability to create a payment access token. The payment access token is required when making request to Payments API for submitting payment for an order.
Required Fields
order_id: identifier for the orderis_recurring: whether this is a recurring order. If the order is recurring this field should be set to true in order to let the payment gateway know.

The headers to process a payment are different than the headers you normally send with a BigCommerce API.
{your-access-token}
type = Type to classify this payment instrument (ex. stored_card, or card)token = Identifier representing this stored cardverification_value = Verification value of this card (CVV)payment_method_id = Identifier for payment method that will be used for this payment and id from the Get Accepted Payment Methods API
type – Will always be cardpayment_method_id – The name of the card in the format payment-provider.cardnumbercardholder_nameexpiry_monthexpiry_yearverification_valuesave_instrument - store a credit card while processing a credit card paymentPayments API allows developers to store a credit card while processing a credit card payment.
When processing a credit payment set save_instrument: true
