Change the card on a subscription — the four endpoints from [PM 1]–[PM 3], end to end.
GET /payments/config using your
project key, so there is no second key to paste. Override it below only if your
project has none stored.
Authorization: Bearer …. Use a test key.
subscriptionId the service returns, not the Stripe sub_….
default_payment_method overrides the customer's
invoice_settings, so this is the card that will actually be charged at
renewal — not merely the customer default.
usage: 'off_session',
so 3D Secure is cleared now rather than failing the next renewal with
authentication_required. Use the 3DS card below to exercise that
challenge — it is the one path no unit test can cover.
4242 4242 4242 4242 — succeeds, no authentication4000 0025 0000 3155 — requires 3DS on setup4000 0027 6000 3184 — requires 3DS on every charge4000 0000 0000 0002 — generic decline4000 0000 0000 9995 — insufficient funds4000 0000 0000 0341 — attaches fine, then fails to charge
(use this to watch invoiceRetry decline)Every request this page makes, with the raw response. The masked card shape is deliberate: a full Stripe PaymentMethod never leaves the service.