#duracel
1 messages ยท Page 1 of 1 (latest)
Hi there ๐ it looks like you're running into a previous limitation where Checkout Sessions for one-time payments couldn't handle 100% off coupons. That limitation was recently removed, but you have to use a newer API version in order to have access to it.
https://stripe.com/docs/payments/checkout/no-cost-orders
You will need to upgrade to API version 2023-08-16
https://stripe.com/docs/upgrades#2023-08-16
Thanks, will start upgrading ๐
Quick question on that actually, I also noticed that invoices for one-time purchases don't show up in the customer portal. Does that also have to do with the API version?
Only subscription payments show up under invoice history in the customer portal
Hm, I wouldn't expect that one to fluctuate with the API version being used. Taking a look at my sample for that.
They're showing up there for me. Do you have an example of an Invoice that you were expecting to see but didn't? If so, can you share its ID, should start with in_.
Oh, now I can see why it wasn't showing up. It's because no invoice is generated for one-time payments such as pi_3NuF4nI2rfN87qVG0UsFIg1U
Is there a way to enable invoice generation for such payments?
Or at least list the receipt on the customer portal. At the moment there's no evidence of the customer's purchase when they visit the customer portal
Yup, when working with Checkout Sessions with a mode of payment you can use the invoice_creation hash to have an Invoice be generated for successful payments.
https://stripe.com/docs/api/checkout/sessions/create?lang=python#create_checkout_session-invoice_creation
https://support.stripe.com/questions/pricing-for-post-payment-invoices-for-one-time-purchases-via-checkout-and-payment-links
Right! It works now, thanks ๐