#infamoustakaros_unexpected

1 messages ยท Page 1 of 1 (latest)

orchid cobaltBOT
#

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

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

manic nacelleBOT
bitter compass
#

Hi ๐Ÿ‘‹ I'll need a lot more context here. Did you have a Payment Method attached to the Customer, and set as the default payment method for their Invoices, when the payment attempted to process? Which test card are you using to test this flow?

paper crystal
#

Hey Toby!

This is the test card I used:
Greece (GR) 4000003000000030 Visa

Yes, I had a payment method attached to the customer. The payment method was attached through the "SetupIntent" flow.
No I did not set the payment method as default, I thought that it would link automatically after the trial ends, as it's done with subscriptions that don't have a free trial.

bitter compass
#

Can you elaborate on what you mean by "link automatically", are you referring to using the payment_settings.save_default_payment_method parameter when creating the Subscription?

paper crystal
#

We have 2 flows in my application:

  1. Free trial (this is where the payment method seems to not be linked to my subscription)
  2. Non free trial, charge user immediately (I think here, the stripe SDK link the payment method client-side)
#

How would I go about, if I want to link a payment method to a free trial subscription?
Should I set it as default?

bitter compass
#

When are you collecting payment method details from your customer in relation to when you create the Subscription object?

paper crystal
#

Independently. We first create a setup intent that is confirmed by our client application and then create the subscription object.

Do i need to pass some setting to the subscription creation to automatically link the payment method after the free trial?