cURL
curl --request GET \ --url https://demo.spreecommerce.org/api/v2/storefront/checkout/payment_methods \ --header 'X-Spree-Order-Token: <api-key>'
{ "data": [ { "id": "1", "type": "payment_method", "attributes": { "type": "Spree::Gateway::Bogus", "name": "Credit Card", "description": "Bogus payment gateway.", "preferences": { "dummy_key": "PUBLICKEY123" } } }, { "id": "2", "type": "payment_method", "attributes": { "type": "Spree::PaymentMethod::Check", "name": "Check", "description": "Pay by check.", "preferences": {} } } ] }
Returns a list of available payment methods for this checkout.
Order token to authorize Cart and Checkout requests.
How to obtain X-Spree-Order-Token
200 Success - Returns an array of payment_method objects.
payment_method
The response is of type object.
object
Was this page helpful?