#surajkumar8781

1 messages · Page 1 of 1 (latest)

chilly cloudBOT
past gulch
umbral bolt
#

req_XgZJrwkYSURWY3

past gulch
#

Is this the correct ID? this request updates a subscription, not create a subscription.

umbral bolt
#

Yes, i mentioned for updated only.

#

We were using CardElement but we migrated to PaymentElement.

past gulch
#

This is how we are creating subscriptions that 's what you told me previously

umbral bolt
#

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.

past gulch
#

I don't think it's related to frontend, let me take a closer look

umbral bolt
#

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.

past gulch
#

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.

umbral bolt
#

Okay so what is the issue now ?

#

Are you still checking it?

past gulch
#

I'm still checking, thanks for waiting, discord is busy today.

umbral bolt
#

okay

chilly cloudBOT
prisma elbow
#

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

#

can you try setting the default_payment_method on the customer and then try again?

umbral bolt
#

Yes cus_OErFAT6uv8H4Ru doesn't have a default_payment_method defined on it because we are setting this while creating the subscription.

#

for individual subscriptions individual payment instead of using default everywhere