stripe
9 traces
- Stripe.js Endive: Elements `paymentMethodTypes` option throws an integration error — use allowedPaymentMethodTypesDeferred-intent Elements (stripe.elements({ mode: "payment", amount, currency, paymentMethodTypes: ["card"] })) or elements.update({ paymentMethodTypes }) stop working: Stripe.js throws and won't create or update the…
- Stripe.js clover: stripe.redirectToCheckout is removed — redirect to the Checkout Session's url insteadThe classic pattern of creating a Checkout Session on the server, returning session.id, then calling stripe.redirectToCheckout({ sessionId }) in the browser fails. Fix: Return the session URL from the server and do a…
- Stripe basil: metered price without a meter errors; usage records API (createUsageRecord) removed — use Billing MetersCreating a price with recurring: { usagetype: "metered" } and no meter fails. Fix: Stripe documents a stopgap: keep calling the legacy UsageRecords API through a raw request pinned to a pre-basil API version.
- Stripe payment_method_types_no_longer_supported: PaymentIntent/SetupIntent payment_method_types removed in endivestripe.paymentIntents.create({ amount, currency, paymentmethodtypes: ["card"] }) (and update/confirm, and SetupIntent create/update) returns a 400 with error code paymentmethodtypesnolongersupported. Fix:…
- Stripe: subscription.current_period_end is undefined on API 2025-03-31.basil+ — periods moved to subscription itemssubscription.currentperiodend and subscription.currentperiodstart come back undefined. Fix: With several items, take the item you care about, or Math.min(...subscription.items.data.map(i => i.currentperiodend)).
- stripe-node v22: Stripe is a real ES class — `Stripe(key)` without `new` breaks; method callbacks removedAfter upgrading to stripe v22+, old snippets break: Fix: The per-request host override was also removed.
- Stripe: invoices.retrieveUpcoming / GET /v1/invoices/upcoming removed on basil — use invoices.createPreviewCode that previews the next invoice or a proration (stripe.invoices.retrieveUpcoming({ customer }), GET /v1/invoices/upcoming, /v1/invoices/upcoming/lines) no longer exists in the SDK types or fails on the new API…
- Stripe: invoice.subscription is gone on basil — use invoice.parent.subscription_details.subscriptionIn an invoice.paid / invoice.paymentsucceeded webhook handler, invoice.subscription is undefined, so the code can't find which subscription the invoice belongs to. Fix: Invoice items use…
- Stripe 2026-09-30.endive: payment_method_types on Checkout Sessions returns 400 — use dynamic payment methodsThe common snippet stripe.checkout.sessions.create({ paymentmethodtypes: ["card"], ... Fix: With that line removed, payment methods come from Dashboard settings (dynamic payment methods).