#eirik-checkout-discount

1 messages · Page 1 of 1 (latest)

cyan eagleBOT
rich siren
#

eirik-checkout-discount

drowsy gorge
#

Hmm, that's what I thought. For some reason I get a "No such promotion code" error when I do this.

rich siren
#

you need to pass the promo_123 not the customer-facing code

drowsy gorge
#

Ah, so how do I get from the customer-facing code to the ID, then?

#

Is a separate API call needed?

rich siren
#

in theory you have it in your own database really

#

Where do you get that code value from exactly?

drowsy gorge
#

From a form field in my checkout page.

#

Well, the page before the Stripe Checkout screen

#

The page where the user picks quantities and tiers etc.

rich siren
#

Gotcha. It's quite uncommon to rebuild your own "enter this code you could enter on Checkout" usually you do that on Checkout, or you don't use PromotionCodes and you have your own coupon code logic

drowsy gorge
#

OK, uncommon in the sense that it has potential security issues, or just uncommon because developers typically defer this to the Stripe Checkout page?

rich siren
#

the latter