#roopa_webhooks

1 messages ยท Page 1 of 1 (latest)

hollow mirageBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1260614486088355962

๐Ÿ“ Have more to share? Add details, code, screenshots, videos, etc. below.

jovial ploverBOT
neon remnant
#

Hi there ๐Ÿ‘‹ can you share the ID of the request returning that error? Offhand it sounds like a default payment method wasn't set for the Customer being referenced in that request.

timid solstice
#

I cannot find event id, but POST /v1/subscriptions/sub_1O5putDwT5gdvn7nr8cm95xW
40

neon remnant
#

You're looking for a request ID rather than an Event ID:
https://support.stripe.com/questions/finding-the-id-for-an-api-request#:~:text=Using the dashboard,the dashboard URL as well

Yeah, it looks like that Customer doesn't have a default payment method set. You'll want to update the Customer object and provide the ID of the Payment Method to be used as the default to invoice_settings.default_payment_method, if you want to set the default payment method at the Customer level:
https://docs.stripe.com/api/customers/update#update_customer-invoice_settings-default_payment_method

timid solstice
#

But initial when customer created a subscription he has payment method so could you please let me know how it has deleted?

#

looks like 'evt_1O5qPsDwT5gdvn7n2o9zv1Tl' in this event payment method has been deleted but I cannot find how it has been done

neon remnant
#

That Event is too old to still be in retention, I can't see details about it.

#

However, at no point does it appear that Customer had a default payment method set.

#

They can have Payment Methods attached without any of them being set as the default, you have to explicitly update the field I referenced if you want to set a default payment method at the Customer level.

timid solstice
#

We are using a stripe checkout page to create subscription and I am sure when we create a subscription and enters payment details it atomatically sets that payment method as default to that subscription.

neon remnant
#

Oh, on the Subscription object, I've been looking in the wrong spot.

timid solstice
#

ah ok, Thank you very much for that.