#rhuzaifa_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/1328297086432579604
📝 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.
- rhuzaifa_webhooks, 4 days ago, 10 messages
hi there!
have you tried changing the setting, and then creating a brand new Subscription to test option 2 and 3? because changing the setting doesn't apply immediately to older subscriptions.
Hey, I didn’t try that, trying now…
I just finished trying this with a new subscription but no luck.
can you share the new subscription ID you created?
sure its sub_1QgkPBHj8xfC0YnCyj9XCuHZ
this subscription was tested for 2 i.e Cancel the subscription at the end of the billing period
thanks, having a look
Hi! I'm taking over from my colleague. Please, give me a moment to catch up.
I can't see any request on this Subscription where you would update the default_payment_method.
Could you please share this Request ID?
Are you updating it on the Subscription?
My integration uses the customer portal and I am updating the payment method on the portal (as a user). The events are appearing in "events" tab in workbench for me but not in the "inspector" tab
Also, per my understanding, the newly added payment card gets set as default automatically, and when I tried it was showing up as default in the customer portal, so I didn't explicitly set it as default.
Could you please share this Request ID?
Sure
- For attaching
4242424242424242card ->evt_1QgkPFHj8xfC0YnComK8rprQ - For attaching
4000000000000259card - >evt_1QgkQ3Hj8xfC0YnCTBUGw5Y8
the customer id is cus_RZuDXq5qxaEpm8
by request_id, I assume you mean the resource id (ex: event/customer), but if its something else, please let me know.
Every request you send to Stripe API has an ID, which you can later inspect in your Dashboard. It also helps me understand the situation better.
Okay, I see that this Payment Method was attached to the Customer, but I don't see that it was updated on the Subscription.
Nor it was set as default for the Customer.
Basically, Stripe will first try to charge Subscrption.default_payment_method and if it's not set, it will use Customer.invoice_settings.default_payment_method. However, I see that the Subscription was created with the default_payment_method, so even if you update it on the Customer, it will not take effect.
You should manually make a call to update Subscription's default_payment_method: https://docs.stripe.com/api/subscriptions/create#create_subscription-default_payment_method