Managing payment methods
Learn how to manage payment methods in a cart.
Getting the available payment methods for the cart
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 GET /v1/shoppers/me/carts/active/payment-methods 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.
For more details, refer to the Payment methods query parameters.
Last updated