#neel.shah

1 messages ยท Page 1 of 1 (latest)

dense crownBOT
gilded gate
#

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

north ginkgo
#

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.

gilded gate
#

It expects the Coupon Id, not promotion code

north ginkgo
#

Can you suggest any stripe api that support promo code for one-time payment other then Stripe checkout?

gilded gate
#

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

north ginkgo
#
  1. User can enter promo code in UI,
  2. Backend server receive promo code via API from frontend
  3. Backend server inform Stripe to collect X amount and apply a promo code
#

๐Ÿค”

gilded gate
#

At step 1 do you own that UI?

north ginkgo
#

Yes

gilded gate
#

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

north ginkgo
#

oh my goodness

#

Does this have in Stripe roadmap?

south umbra
#

Taking over here. What exactly are you referring to? Coupon support on Payment Intents?

north ginkgo
#

Hi ๐Ÿ‘‹ , We will have to collect one-time payment from our own UI and support to add promo code (specific customer)

#1022391304136691712 message

south umbra
#

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

north ginkgo
#

Which Stripe API is advisable when we've to collect one-time payment immediately?

  1. Charge API
  2. Invoice API (Create Inovice, Add Invoice Item , Pay)
  3. Payment Intent
south umbra
north ginkgo
#

Thank you again for responding quickly ๐Ÿ™