#Enqvida
1 messages · Page 1 of 1 (latest)
Hi there!
How are you creating the subscriptions? With Checkout Sessions, Payment Link, or directly calling the Subscription endpoint?
Let me double check, I believe with checkout sessions
If it's Checkout Session, then you need to use payment_method_collection: if_required https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_method_collection
@shell sable The extension doesn't support that parameter (and unsure if it ever will)
The nature of the extension means that the parameters used to create the session are set on the front-end, which opens them up to malicious interception (i.e. a user could pass payment_method_collection: if_required unbeknownst to you)
@errant moss is there any workaround that you know of?
Only solution I can think of it just manually ask for the payment after 7 days
Workaround for what? Any Checkout session you create via the Firebase extension will require a payment method upfront
Workaround how to not force user to pay when registering to the app. First option was to set trial period. Now it seems that we need to create some logic for activating subscription after x amount of time.
Yeah the extension doesn't support that currently (nor does Checkout for activating subscription later)
You could bypass session creation via the extension and create them directly, that way you can pass payment_method_collection.
How would I do that?
You'd call our API directly, rather than using the extension to create the Firestore document (which in turn creates the session)
Got it thank you 🙂