#tonya_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1262879185660284938
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there
Hi!
Taking a look at the Checkout Session details
Thanks. ๐
I was thinking you could use payment_method_collection but that's only available for Sessions in subscription mode: https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-payment_method_collection
Say, if you have a $0 first invoice, you can still collect payment details so you can use these for the next invoice
Looks like there isn't a way to do this in Checkout with payment mode
You could use a Session in setup mode so you can collect payment details for future charges, and track on your end that they've already "redeemed" the $10 discount
Yep, problem is not all of them will be eligible for the code.
No worries; I think I'll collect their payment info first, and then send them right into the checkout session for the payment. It's clunky, but my ops team already sent out the code before we realized that the coupon code to zero out an amount isn't compatible with api versions before 8/16/23.
Thanks again! ๐