#truuutipz
1 messages · Page 1 of 1 (latest)
You can update the Subscription to set trial_end: now to end the trial immediately. This will reset the billing cycle anchor and charge cut a new Invoice for the Subscriptions new billing cycle
Thanks @smoky bronze, will it still be the same subscription that we set from free trial to paid?
Yup!
Also, is there a way for a customer to set their payment method as default in Stripe Checkout Hosted Page?
@smoky bronze awesome thank you. Just one more question above^
If a customer is paying for a Subscription through the Stripe hosted Checkout page, then we automatically set that Payment Method as the default for that Subscription. However, I don't think there's a way to set it as the default on the Customer (at invoice_settings.default_payment_method)
Interesting, I used the Stripe Checkout Hosted Page in test mode. Checkout was successful and noticed in my account, my payment method still wasn't set to default. Do I need to configure it somewhere on my own?
Can you share an example Subscription/Checkout Session where you're seeing this?
Sure, give me a few mins
Did you want to see how I'm passing in Stripe Checkout Session API or did you want to see the Checkout Page?
I just checked out again via Checkout Session URL and my test payment method wasn't set to default
@smoky bronze
Yeah, so the default payment method is set on the Subscription-level if you pay for Checkout, not on the Customer. If you were to retrieve any of those Subscriptions through the API you should see default_payment_method set
👍 happy to help!
Hi @smoky bronze I actually encountered an issue. So, when I did trial_end: now for my free trial subscription, it actually cancel my subscription and did not convert to paid
If I want to convert free trial to paid subscription immediately, would I have to create a new subscription?
Do you have a Subscription ID? I'm surprised it immediately cancelled the Subscription
That subscription was cancelled because you made a request to cancel it (see https://dashboard.stripe.com/test/logs/req_STNPDqM15RnZH8), it wasn't cancelled as part of the trial ending
Do you maybe have any code running that automatically cancels subscrpitions that are in a specific state/status?
Let me get back to you on that @smoky bronze
@smoky bronze If I were to convert my free trial to paid subscription, does a customer.subscription.trial_will_end event get fired? If so, we do have logic there that cancels the subscription
Yup, we do fire the webhook event in that case - https://stripe.com/docs/api/events/types#event_types-customer.subscription.trial_will_end
@smoky bronze it was the customer.subscription.trial_will_end event. I confirm that we have logic there that cancels the subscription. So I disable my webhook and it is working as expected or as you mentioned. Thank you so much!