#phillip_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/1351502129730289735
๐ 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.
- phillip_api, 16 hours ago, 7 messages
- phillip_api, 23 hours ago, 38 messages
Hi there ๐ I believe so, is that what you see when you test this flow?
Wait, how are you getting into a state where your cusotmer has a subscription that can be updated but doesn't have a payment method added?
Are you trying to let them update an incomplete Subscription?
I haven't tested this flow yet โ because I wasted so much time building a flow already and it didn't work out as I needed it. So before I start coding again, I wanted to ask here if this even possible.
My users start a subscription which is $0 and has a 14 days trial. I start the subscription with
const subscription = await stripeClient.subscriptions.create({
customer: customerId,
items: [{ price: priceId }],
trial_period_days: 14,
trial_settings: {
end_behavior: {
missing_payment_method: 'cancel'
}
}
});
So they will not add a payment method.
After the trial expired, I ask the user to choose a plan:
- I build my own pricing table UI and let the user select a plan
- Then, I want to redirect to a customer portal session with
subscription_update_confirm-> where the user confirms the plan, but also needs to add a payment method.
Is adding a payment method supported by a customer session with subscription_update_confirm?
Ah, so you are creating Subscriptions with trial periods (that's different from the scenario you described in your initial message, and is where my confusion came from).
I'm not sure offhand, and will need to stand up a test for that. If you already have the first part of your flow created that creates the Subscription, you'll likely be able to test faster than I can, but I'll be back once I've had a chance to finish testing that.
Oh, that's okay. Could have been that you know the answer from the top of your hat. I will test it myself, it's all good! Thank you for your time @empty forge
Yes it seems to:
Thanks! How can I change the button text? Because mine says "Subscribe with obligation to pay" instead of "Subscribe and pay"
As far as I'm aware, you can't. The difference in verbiage you're seeing is likely caused by a difference in the location being used to test the flow.
Okay got it. Thanks for your time and thread can be closed!