#zali-coupons-promocodes
1 messages · Page 1 of 1 (latest)
heya @signal shell ! it depends on how you're planning to collect payment method details - if you are planning to build your own page and use PaymentIntents with the Payment Element. Then you would have to implement your own promo code discount logic and calculate the final amount to create the PaymentIntent with. If you use Checkout - it does support coupons / promo codes
Thanks @normal vault Yes we are using payment intent, by checkout do you mean the sessions? https://stripe.com/docs/api/checkout/sessions
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
yep, Checkout Sessions is what i was referring to. You can set mode=payment and allow_promotion_codes=true
ah nice! Thank you very much! @normal vault
btw, if you want to see how it looks like - https://checkout.stripe.dev/
Yup just saw that!