#325
Stripe: saved payment methods and subscriptions (feature request)
Request
Two Stripe areas that subscription and usage-billing integrations call are missing from the emulator (checked on main at 4c0422e):
- Saved payment methods.
GET /v1/payment_methodsalways returnsdata: [](routes/payment-methods.ts), and the seed config cannot attach a card to a customer. Off-session charges (POST /v1/payment_intentswithcustomer,payment_method,off_session=true,confirm=true) therefore cannot be exercised. TodayPOST /v1/payment_intentsalso ignoresconfirm=trueandoff_session, so the intent staysrequires_confirmation. Expected: seedablepm_cards on a customer (withcustomer.invoice_settings.default_payment_method), andconfirm=trueconfirming at creation as Stripe does. - Subscriptions. No
/v1/subscriptionsroutes (retrieve, update withitems[0][id]+items[0][price]), nocustomer.subscription.created/updated/deletedevents, and amode=subscriptionCheckout Session completes without creating a subscription or settingsession.subscription. Recurring prices (recurring: { interval }) cannot be seeded either./v1/invoices(list) and/v1/billing_portal/sessions(create, returning a URL) would complete the picture.
Happy to help test a first cut against a real integration.
Activity
0No activity yet.