Managing payment methods
Learn how to manage payment methods in a cart.
Last updated
Was this helpful?
Learn how to manage payment methods in a cart.
Last updated
Was this helpful?
To offer various payment options for customers, it's crucial to retrieve the available payment methods for the cart. This guide will walk you through accessing these methods using the Commerce API. By following the instructions below, you can easily integrate this functionality into your application and enhance the checkout experience for your users.
To get the available payment methods for your cart, send a request and include {Your_API_Key}
in the header. Here's an example using cURL:
A successful response will return a JSON object with the available payment methods and related information. See the for more information.
To add an organization identifier to a cart, send a request. Include {Your_API_Key}
in the header and the organizationId
field in the request payload. The organizationId
will be passed to the payment session to make specific payment methods available. Here's an example using cURL:
A successful request returns a 200 OK
response with the updated organizationId
in the cart. See the for more information.
To remove an organization identifier from the cart, send a request. Include {Your_API_Key}
in the header. Set the organizationId
field to an empty string in the request payload. This will delete the organization identifier from the cart, resulting in a 200 OK
response if successful. Here's an example using cURL: