-
Notifications
You must be signed in to change notification settings - Fork 413
Open
Description
Bug report
Describe the bug
Subscription can't be created on 2025-03-31.basil because of this change
https://docs.stripe.com/changelog/basil/2025-03-31/add-support-for-multiple-partial-payments-on-invoices#use-for-payment-element-integrations
instead of expand: ['latest_invoice.payment_intent']
it should be expand: ['latest_invoice.confirmation_secret']
instead of
res.send({
subscriptionId: subscription.id,
clientSecret: subscription.latest_invoice.payment_intent.client_secret,
})
it should be
res.send({
subscriptionId: subscription.id,
clientSecret: subscription.latest_invoice.confirmation_secret.client_secret,
})
To Reproduce
Try to change
const stripe = require('stripe')(process.env.STRIPE_SECRET_KEY, {
apiVersion: '2022-08-01',
to
const stripe = require('stripe')(process.env.STRIPE_SECRET_KEY, {
apiVersion: '2025-03-31.basil',
and create a subscription. It will fail because subscription.latest_invoice.payment_intent
will be null.
vitaliikotliarvitaliikotliar
Metadata
Metadata
Assignees
Labels
No labels