#rodan28
1 messages · Page 1 of 1 (latest)
Hi there!
collect payment method and payment when the subscription ends
What do you mean by this exactly?
Can you give a concrete example of how that would work?
I want to create subscription usage based, I have promo coupon for users -50 euros, for testing, and I don't want at the begining collects payment method (credit card or something)
because sers are afraid to provide credit card info, so they should tests service, and after they reach 50 euros, they should provide payment method
And how do you create the Subscription? Checkout Session, Payment Element, something else?
pricing table right now, but I change it
Pricing table don't support usage based subscriptions, as mentioned here: https://stripe.com/docs/payments/checkout/pricing-table#limitations
So instead you should use Checkout Session. And you could use payment_method_collection to not collect a payment method right away https://stripe.com/docs/api/checkout/sessions/create?lang=node#create_checkout_session-payment_method_collection