#keithm5699_api
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/1379811470849736755
๐ 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.
- keithm5699_api, 4 days ago, 25 messages
Hi there ๐ I'm not seeing associated Payment Intent or Charge failures, so my suspicion is that something happened to the Customer or Subscription that caused the default payment method to be unset (if it was set) so we didn't know what Payment Method to use to try to process a payment, but I'm taking a closer look to double check.
Hm, doesn't look like a default payment method was ever set on the Customer or Subscription object level.
Hey @sonic glade thanks for quick response, I can see the payment method on dashboard here: https://dashboard.stripe.com/acct_1OmxZNE3jfg5KaWY/customers/cus_RXg8foO1Sjqsip
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Yeah, a Payment Method exists, but it wasn't set as the default to be used. Neither in invoice_settings.default_payment_method on the Customer object:
https://docs.stripe.com/api/customers/object#customer_object-invoice_settings-default_payment_method
nor on the Subscription object:
https://docs.stripe.com/api/subscriptions/object#subscription_object-default_payment_method
If you want the payment method that is created for the first payment to be set as the default for the Subscription moving forward, I'd suggest setting payment_settings.save_default_payment_method to on_subscription when creating the Subscription object:
https://docs.stripe.com/api/subscriptions/create#create_subscription-payment_settings-save_default_payment_method
You can use our Test Clocks to quickly test and ensure that causes recurring payments to succeed the way you're hoping:
https://docs.stripe.com/billing/testing/test-clocks
thanks @sonic glade is this only required for some payment methods? We've only had complaints for BACs on this / havent spotted on credit cards for example
I'll try the above and hope it resolves
I don't believe this is dependent on the specific payment method type being used.
odd, the client here is only complaining about it on derict debit / bacs and we (platform) have thousands of other subscriptions, e.g. https://dashboard.stripe.com/acct_1OmxZNE3jfg5KaWY/logs/req_7ehp3A16v3jnNz
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
That Customer had invoice_settings.default_payment_method set here:
https://dashboard.stripe.com/logs/req_RKrP8DlS4h0jaS
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
to us these two requests to create the subscription look the same, my guess is we set default payment method on customer?
ah perfect, I think I see issue in our logic now
thanks for this
Any time!