#greenmonkeyboy

1 messages · Page 1 of 1 (latest)

shell tigerBOT
sweet shale
#

However, if the customer has a payment method registered, when I update the trial days, it's also assign to the subscription the payment method because I can't uncheck the checkbox "Automatically charge a payment method on file".
Can you share the SubscriptionId and a screenshot of what you ar ereferring to please ?

oblique meadow
#

The subscription ID: sub_1Np5SHA3Qo6DyKZwqQWFKxNA

The first image is the subscription before the update, the second image is the panel to update the subscription. On this panel, you can see the at the bottom the checkbox "Automatically charge a payment method on file". I'd like to not select any payment method for the subscription, just increase the free trial days.

sweet shale
#

I'd like to not select any payment method for the subscription, just increase the free trial days.
That payment method is one attached to that customer. You have two options, rather delete that PaymentMethod for the customer

#

or keep updating the Subscription like that.

#

Why you don't want to select a PaymentMethod ?

oblique meadow
#

Because it will charge the customer at the end of the trial. The end behavior is "cancels at period end" if there is no payment method selected.

#

And a customer can have multiple subscriptions. So the payment method could be used by another subscription, I can't delete it.

tardy bronze
#

Hi! I'm taking over this thread.

#

Sorry for the delay

#

What do you want to happen when the trial ends?

oblique meadow
#

Hello, no problem for the delay. When the trial ends, I want it to cancel if there is no payment method selected. It's why I don't want to select a payment method, otherwise the customer will be charged.

In my app, I offer 30 days free trial with no card required. But if I want to increase the trial days of a subscription, it seems I have to select a payment method, at least with the dashboard, I didn't try with a request to the API yet, I will try it as soon as possible today.

#

I mean I have to select a payment method if the customer has a payment method registered, it's the problem.

shell tigerBOT
frozen pine
#

in the API you should be able to pass trial_end to the Update Subscription API set to any date you like (e.g. calculate 'subscription.trial_end + (5 days in seconds)` and pass that value to add 5 extra days)

oblique meadow
#

Yes but can I do the same from the dashboard? From the dashboard it seems I can't update the trial days without selecting a payment method if the customer has a payment method registered.

frozen pine
#

I don't know, sorry

oblique meadow
#

If you look at the second image, it seems weird I can't unselect the payment method. If I want to update the subscription from the dashboard, I can't avoid to select the payment method. I wonder if it's not just a problem with the dashboard UI.

frozen pine
#

does seem weird, and sure, like I said, this is totally possible in the API, the Dashboard editor is its own product though and our team doesn't really support it, we mainly focus on API/dev questions