#xfechx
1 messages · Page 1 of 1 (latest)
Hi! What's the question?
hi vanya
If i add:
'invoice_creation' => ['enabled' => true],
to my checkout sessions' code
do I need to worry about it shooting an error?
if my checkout sessions alredy work fine (different scenarios: connect, subscription + connect, single, non-connect, etc)
or do I need to test EVERYTHING to use that feature.
What kind of error do you expect?
hmm, not expecting an error
I am asking to know if there is any limitation on using that parameter inside the checkout session create
as I mentioned above, I have some instances of the code where checkout session creates a session for a subscription, what will happen in this scenario for example?
I see.
Currently, the invoice_creation option only works with payment mode of Checkout Sessions.
However, I'd recommend testing everything if you make changes, so you are sure everything works as expected.
ok
can you point me exactly where does it say this, because i find this a common issue with stripe, very friendly text on the website, but when implementing new functionality it doesn't list the limitations or disclaimers
in this case, i cannot find anywhere where it says that it cannot be used with subscription checkout sessions, so if it is such a big thing to have subscriptions in stripe, why wouldn't you make it simpler by listing disclaimers?
Here's the doc, it mentions that it's for one-time payments: https://stripe.com/docs/payments/checkout/post-payment-invoices
You also get an elaborate error message if you try to do it with a subscription. It's the easiest way to get the feel of how things work. Therefore it's recommended to test everything before making changes.
so it is only for 'submit_type' => 'pay' correct?
No, that's just the button label.
The mode needs to be payment:
"mode": "payment"
Hello 👋
mode is a required parameter when creating a checkout session
You can't omit it
https://stripe.com/docs/api/checkout/sessions/create?lang=node#create_checkout_session-mode