#pro-pooja_webhooks

1 messages · Page 1 of 1 (latest)

tawdry spadeBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always 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/1263453859905405049

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

manic coralBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

fringe dawn
#

When you say 'getting charged', what payment is that happening on?

worldly compass
#

On updating subscription

fringe dawn
#

Can you share the pi_xxx ID

#

Is it this subscription, sub_1Pdn7FGVCe8mF8QW6fBme8DQ?

worldly compass
#

pi_3PdsFIGVCe8mF8QW1gbpMbZD,

fringe dawn
#

It's because default_payment_method is set on the Subscription, which takes precedence over the default_payment_method on the Customer: https://docs.stripe.com/api/subscriptions/object#subscription_object-default_payment_method

ID of the default payment method for the subscription. It must belong to the customer associated with the subscription. This takes precedence over default_source. If neither are set, invoices will use the customer’s invoice_settings.default_payment_method or default_source.

worldly compass
#

Yes, it is subscription - sub_1Pdn7FGVCe8mF8QW6fBme8DQ

fringe dawn
#

Checkout will set that automatically

#

It's set to use pm_1Pdn7EGVCe8mF8QWKO3l9IOm which is the 4242 card

worldly compass
#

Ohhhk, got it.
How can I set it default for both customer and subscription from API?

fringe dawn
#

Well if you want to use the default on the customer, just unset default_payment_method on the Subscription

#

Update the sub and pass default_payment_method: ''

worldly compass
#

OK, In that case Subscription will automatically inherit the default method of the customer, right?

fringe dawn
#

Yep!

#

If you're using Checkout though it will always set default_payment_method on any Subscriptions it generates, just worth noting that

worldly compass
#

Noted, Thank you.