#od

1 messages · Page 1 of 1 (latest)

dusk canopyBOT
steep plume
#

Hi there, so basically you just want to have a Stripe-hosted page to collect payment method from a customer, am I right?

frozen mauve
#

For that, I know we can create a checkout session to redirect the user to Stripe to enter card details.

And can also create a billing portal session to allow the user to update payment info and the like.

When we create a subscription for a customer, are there any challenges we should be aware of if we remove or add a subscription item to the subscription (metered billing for all items)? What happens if a subscription item is removed from the subscription? Does the customer get charged for the usage still?

steep plume
#

It depends on what subscription item is removed, do you have an example?

frozen mauve
#

Imagine a subscription to a set of two Price objects. One price is for a product "advanced"; e.g. 0.2 USD per API request. Another price is for product "basic": e.g. 0.1 USD per API request. Suppose we decide "basic" is no longer available, but the user has made 10 API requests. If we remove the basic price from their subscription, do they still get charged for that 10?

steep plume
frozen mauve
#

How do we know at what point they will be charged? Immediately or will their usage be charged at end of billing cycle?

steep plume
frozen mauve
#

Anything special for metered billing though?

#

Regarding prorations

steep plume
#

I believe the same proration logic applies. You can test it out in test mode.

frozen mauve
#

Okay thanks

frozen mauve
#

If a user has a "active" subscription, I notice that on the customer portal user's are not allowed to delete their payment method. However, if a user cancels their subscription, and subsequently deletes all of their payment methods, and if positive usage has been recorded for the user's subscription, will the user be charged?

steep plume
frozen mauve
#

Can you please explain how that answers my question?

steep plume
#

That doc explain the behaviour of invoice items and usage when a subscription is canceled, and it also tells you to delete invoice items if you don't want to bill your customer.

#

If your customer doesn't have a payment method for invoices, or the current payment method can't pay an invoice. Depends on your settings, the customer may receive an email from Stripe asking them to pay the invoice.

frozen mauve
#

Would it be possible to configure a usage-based subscription where if it is canceled, and if usage has been recorded for it, their payment method attached to the subscription is charged?