#keithm5699_api

1 messages ยท Page 1 of 1 (latest)

red jungleBOT
#

๐Ÿ‘‹ 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.

sonic glade
#

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.

snow sail
sonic glade
#

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

snow sail
#

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

sonic glade
#

I don't believe this is dependent on the specific payment method type being used.

snow sail
sonic glade
snow sail
#

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

sonic glade
#

Any time!