#Miroslav
1 messages · Page 1 of 1 (latest)
No, it should be free forever
And do you want to collect a payment method?
This is for special demo or partner users
Not necessarily, I won't need the payment method for this type of customers
But in order not to change a lot of code elsewhere, I still want to have a Customer in Stripe for them, as well as a Subscription
Then create a $0 price and set this to not ask for a payment method: https://stripe.com/docs/api/checkout/sessions/create?lang=node#create_checkout_session-payment_method_collection
However I don't really see the point of creating a Checkout Session and Subscription if the subscription is always free.
It seems simpler to not use Stripe for this at all.
Maybe, I was thinking about that route as well. But currently, fields like CustomerID and SubscriptionID on our side are required fields, and there are a lot of places in the code that expect those to have a value for certain actions. As free users are edge cases and not a priority on our side, it seems like it's not worth it to change the code in order to accommodate them. Does that make sense?
If you want to use Stripe, then:
- Use Checkout Session with a $0 price and
payment_method_collection:if_required - Or directly create a $0 Subscription with the Subscription endpoint: https://stripe.com/docs/api/subscriptions/create
Both should work.
Thanks @vapid hinge!