Returns payment methods available for the order based on store configuration and order state
JavaScript
import { createSpreeClient } from '@spree/sdk' const client = createSpreeClient({ baseUrl: 'https://your-store.com', publishableKey: '<api-key>', }) const methods = await client.store.orders.paymentMethods.list('or_abc123', { bearerToken: '<token>', })
{ "data": [ { "id": "pm_UkLWZg9DAJ", "name": "Credit Card", "description": null, "type": "Spree::Gateway::Bogus", "session_required": true } ], "meta": { "count": 1 } }
Publishable API key for store access
JWT token for authenticated customers
payment methods found
Show child attributes
Was this page helpful?