#Josh Manley (CAD Class)
1 messages · Page 1 of 1 (latest)
Can you give me some context as to why you want to allow your customers to enter in $0? What would you be collecting at that point?
Email addresses I can send the PDF to. You can see it over at cadclass.org/pages/book
I'm building backend automations to automatically email the PDF, but running into problems because I'm having to do it two separate ways
For pay what you want you're talking about https://stripe.com/docs/payments/checkout/pay-what-you-want?dashboard-or-api=api right?
Yep!
Gotcha
I don't think what your asking for is possible with pay what you want (or payment Checkout Sessions in general)]
Usually, with mode: payment Checkout Sessions we require the amount to be greater than or equal to the minimum charge amount (for USD that'd be 50 cents) and we'd require card info
And with a mode:setup Checkout Session which would charge nothing ($0) we'd still require card details as well
Gotcha. I was afraid that would be the case. Can you think of any other ways to do it?
The only type of Checkout Session that doesn't require payment details are mode: subscription, which you can set with payment_method_collection (https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_method_collection)
Really I think your only option is to have the two separate flows (one for no payment outside of checkout, and the rest inside Checkout).
Or you'd built out your payment page yourself that handles this
Yeah, that makes sense. I figured I'd exhausted all options but didn't want to assume
Thanks for the help!
happy to help! (and sorry we don't support this)