#surajkumar8781
1 messages · Page 1 of 1 (latest)
Hi! Can you share the request ID (req_xxx)? Here's how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
req_XgZJrwkYSURWY3
Is this the correct ID? this request updates a subscription, not create a subscription.
Yes, i mentioned for updated only.
We were using CardElement but we migrated to PaymentElement.
This is how we are creating subscriptions that 's what you told me previously
I started getting below error in subscription.update webhook
Sorry for confusion
Previously we were using CardElement but recently we migrated to PaymentElement and after that this error started coming.
I don't think it's related to frontend, let me take a closer look
Just for your context :
When we were on CardElement we were not passing this default_payment_method in subscription.create request but now we are passing.
OK. Stripe should use the default_payment_method of the subscription and only use the customer's default invoice payment method if default_payment_method is not availble.
I'm still checking, thanks for waiting, discord is busy today.
okay
if i take a look at sub_1NSNX9C15gn2KO2gvHQDuJGK - the corresponding cus_OErFAT6uv8H4Ru doesn't seem to have a default_payment_method defined on it in invoice_settings.default_payment_method [0]
[0] https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
can you try setting the default_payment_method on the customer and then try again?