#heynatefox_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/1357058614312960072
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Adding @tropic needle
Hi, I think subscription schedules would work best in this case. However, if you find this wonky, you can create a subscription for the first 6 months with a cancellation period, https://docs.stripe.com/api/subscriptions/create#create_subscription-cancel_at . Then, you can create another subscription. You'd collect the payment method once and then save the payment method as the default one on the customer, https://docs.stripe.com/api/customers/update#update_customer-invoice_settings-default_payment_method. This will allow you to use that payment method for future invoices on the customer.
Alternatively, the easiest option is to create the subscription. All the funds land on the Platform account. For the first 6 months, you make a Transfer, https://docs.stripe.com/api/transfers/create each time.
Okay- and would this require the user to re-subscribe at that point? Or would they not notice a difference on their end?
Since you have the payment method details, you can just create the subscription on the server-side right? At this stage, it's possible that the issuing bank asks for additional authentication. In this case, you would need to bring the customer back on session so depending on what the issuing banks wants, they may have to come back on session to complete that step.
Actually, you can update the subscription
and set that value to null
Mmm that's the concern. We would need it to be seemless so that we're not interuppting peoples' subscriptions
Oh nice!
This will be unset if you POST an empty value.
So you can stop the transfer happening after 6 months
Can you try that?
Okay, that's great. @tropic needle any further questions here?
You can use Test Clocks, https://docs.stripe.com/billing/testing/test-clocks
This helps advance time to test stuff like this
Yeah, I will have the team look into this ASAP! It's a key thing we want to launch, so will let you know as soon as they dig in
Do you want me to send you an email with the results? or re-open the ticket?
No need. If it works great. If it does not, you can create another thread in Discord
Cool! Will keep you posted
Sounds good. We close inactive threads so if this thread is closed, just create a new one and we will be able to unblock you.