Accepted Payment Methods
The Payments API processes payments using payment instruments such as credit cards or PayPal accounts. To learn more about Payments, see the Payments Overview.
The Get accepted payment methods endpoint returns information about the payment methods each configured payment gateway accepts. This information optimizes your implementation's likelihood of making successful payments requests that return errors solely when payment methods fail, without making API calls to the gateway prior to running the payment.
For a list of compatible payment gateways, as well as a guide through the API call sequence needed to make charges, see the Payments Overview.
This endpoint uses the X-Auth-Token header to authenticate. For an X-Auth-Token example request, see the related section in our Authentication article.
To learn more about authenticating Payments endpoints, locate the Authentication section at the top of each endpoint, then click Show Details.
Resources
Webhooks
Additional Payments endpoints
Get Accepted Payment Methods
GET https://api.bigcommerce.com/stores/{store_hash}/v3/payments/methodsRequest
Returns a list of accepted payment methods based on the order_id
or checkout_id
.
Notes
- Use the Create an Order endpoint to generate the
order_id
. - Orders created will be set to incomplete order status.
- The cart ID and checkout ID are the same.
Required Fields
order_id
orcheckout_id
Authentication
- X-Auth-Token in header
Parameters
- store_hash in path - string
- Accept in header with default of application/json - stringrequiredThe MIME type of the response body.
- order_id in query - integerThe ID of the subject order.
- checkout_id in query - stringThe ID of the subject checkout; identical to the cart ID.
example
Response
Body
dataarray[object]
response
See something you can improve? Edit this file on GitHub