#xfechx

1 messages · Page 1 of 1 (latest)

distant girderBOT
coarse valley
#

Hi! What's the question?

dusty moon
#

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.

coarse valley
#

What kind of error do you expect?

dusty moon
#

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?

coarse valley
#

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.

dusty moon
#

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?

coarse valley
#

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.

dusty moon
#

so it is only for 'submit_type' => 'pay' correct?

coarse valley
#

No, that's just the button label.

The mode needs to be payment:
"mode": "payment"

dusty moon
#

ok

#

when mode: payment is omitted, it is for one-time payments yes?

acoustic junco