#pro-pooja_webhooks
1 messages · Page 1 of 1 (latest)
👋 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.
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.
- pro-pooja_webhooks, 21 hours ago, 10 messages
- pro-pooja_webhooks, 2 days ago, 8 messages
- pro-pooja_webhooks, 2 days ago, 12 messages
When you say 'getting charged', what payment is that happening on?
On updating subscription
pi_3PdsFIGVCe8mF8QW1gbpMbZD,
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.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Yes, it is subscription - sub_1Pdn7FGVCe8mF8QW6fBme8DQ
Checkout will set that automatically
It's set to use pm_1Pdn7EGVCe8mF8QWKO3l9IOm which is the 4242 card
Ohhhk, got it.
How can I set it default for both customer and subscription from API?
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: ''
OK, In that case Subscription will automatically inherit the default method of the customer, right?
Yep!
If you're using Checkout though it will always set default_payment_method on any Subscriptions it generates, just worth noting that
Noted, Thank you.