#truuutipz

1 messages · Page 1 of 1 (latest)

mild marlinBOT
smoky bronze
#

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

polar pumice
#

Thanks @smoky bronze, will it still be the same subscription that we set from free trial to paid?

smoky bronze
#

Yup!

polar pumice
#

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^

smoky bronze
#

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)

polar pumice
#

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?

smoky bronze
#

Can you share an example Subscription/Checkout Session where you're seeing this?

polar pumice
#

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

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

polar pumice
#

Ah I see. Makes sense

#

Sounds good, thank you @smoky bronze

smoky bronze
#

👍 happy to help!

polar pumice
#

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?

smoky bronze
#

Do you have a Subscription ID? I'm surprised it immediately cancelled the Subscription

polar pumice
#

Yes I do

#

sub_1MAjNfJ85cqQfSXbDlNbgftF

smoky bronze
#

Do you maybe have any code running that automatically cancels subscrpitions that are in a specific state/status?

polar pumice
#

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

smoky bronze
polar pumice
#

@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!