#neel.shah
1 messages ยท Page 1 of 1 (latest)
Hey, you can add promotion code to subscription and it would apply to invoices generated from that Sub.
Or you can try adding promotion code to a customer when creating Invoice for them
Subscription didn't fit for us as we don't have recurring payments. We have to collect one time payment.
I'm getting above error while appliying promo code.
It expects the Coupon Id, not promotion code
Can you suggest any stripe api that support promo code for one-time payment other then Stripe checkout?
That doesn't really make sense, since Promotion Code is for customer to enter into some UI, but you are creating InvoiceItem inside your system
- User can enter promo code in UI,
- Backend server receive promo code via API from frontend
- Backend server inform Stripe to collect X amount and apply a promo code
๐ค
At step 1 do you own that UI?
Yes
I see. I am afraid Stripe's promotion code is built for Stripe provided UI, such as Checkout or Customer Portal. If you want promotion code on your own UI, you would need to implement and simulate it by a Stripe Coupon under the hood
then you can apply a Stripe Coupon to an Invoice Item like above
Taking over here. What exactly are you referring to? Coupon support on Payment Intents?
Hi ๐ , We will have to collect one-time payment from our own UI and support to add promo code (specific customer)
AFAIK, that's not something that we're planning on working on
You'd need to handle promotion/coupon discounts yourself and calculate the amount value of the Payment Intent to reflect that
Which Stripe API is advisable when we've to collect one-time payment immediately?
- Charge API
- Invoice API (Create Inovice, Add Invoice Item , Pay)
- Payment Intent
Payment Intents or Invoicing, depending on your requirements (do you need an invoice?)
You should not use the Charges API directly, it's deprecated: https://stripe.com/docs/payments/charges-api
Got it.
Thank you again for responding quickly ๐