#ctodan
1 messages · Page 1 of 1 (latest)
Hello! Where are you seeing this error? in the dashboard?
no sorry thats my ui
await this.stripe.paymentIntents.confirm(paymentIntent.id, {
payment_method: paymentMethodId,
mandate_data: {
customer_acceptance: {
type: "online",
accepted_at: new Date().getTime(),
online: {
ip_address: ipAddress,
user_agent: userAgent,
},
},
},
})
gotcha - in that case can you share a request ID or subscription ID so I can take a closer look?
req_FphiZanexfBMHR
const subscription: Stripe.Response<Stripe.Subscription> =
await this.stripe.subscriptions.create({
customer: stripeCustomerId,
items: [{ price: subscriptionPlan.stripePriceID }],
payment_behavior: "default_incomplete",
collection_method: "charge_automatically",
expand: ["latest_invoice.payment_intent"],
})
i create the subscription like so
👍 let me take a look
Is this something you're trying for the first time with subscriptions, or is this something you've had working previously?
it was working previously
adding cards with the payment element now
not sure why that started
It was working previously with legacy bank accounts? Or only with cards?
Do you have an example of it previously working with a bank account
If you're still around - I believe I know why you're getting the error. Previously you weren't passing in payment_method when you confirmed the Payment Intent so we used the default_source on the Customer as a legacy bank account
Since you're passing in the ba_123 legacy ID as a payment_method during confirmation we treat it as the newer us_bank_account type