Returns a payment setup session with its current status and provider data.
JavaScript
import { createSpreeClient } from '@spree/sdk' const client = createSpreeClient({ baseUrl: 'https://your-store.com', publishableKey: '<api-key>', }) const session = await client.store.customer.paymentSetupSessions.get('pss_abc123', { bearerToken: '<token>', })
{ "id": "pss_UkLWZg9DAJ", "status": "pending", "external_id": "seti_test_1b58935931d8c9cb68ef5aa8", "external_client_secret": "seti_secret_14e0a9a846b20aca2cbcbf73", "external_data": { "client_secret": "secret_123" }, "created_at": "2026-03-04T21:02:34.854Z", "updated_at": "2026-03-04T21:02:34.854Z", "payment_method_id": "pm_UkLWZg9DAJ", "payment_source_id": null, "payment_source_type": null, "customer_id": "cus_UkLWZg9DAJ", "payment_method": { "id": "pm_UkLWZg9DAJ", "name": "Credit Card", "description": null, "type": "Spree::Gateway::Bogus", "session_required": true } }
Publishable API key for store access
JWT token for authenticated customers
Payment setup session ID
payment setup session found
Show child attributes
Was this page helpful?