#Talon-discount-codes

1 messages ยท Page 1 of 1 (latest)

granite nymph
#

Hi there ๐Ÿ‘‹ what have you tried so far? Are you following any tutorials or looking at any of the docs Stripe has related to discounts and promo codes?

frozen relic
#

I have created a promo code which gives 50% discount

#

now I want users to add this code in the checkout page

#

promo_1LXqMjF9Zo1nikLis5dJ33HZ

#

according to doc we can add promo code while creating a session, but does this automatically apply the code to checkout? can't we allow users to manually type the code themselves?

granite nymph
#

You can have the customer type the code into the form that triggers the creation of the Checkout session, but you won't be able to have them add the promo code in the actual checkout session

frozen relic
#

aha i see

frozen relic
#

what is this then?

#

if we set this to true, can't we allow users to add code?

#

this sounds confusing

granite nymph
#

Ah, I missed that when I was creating my test checkout session. I accidentally set to a string instead of a boolean and mistakenly thought that it was working and just not asking for promo codes.

You can set allow_promotion_codes on Checkout Session creation, and customers can use promo codes during checkout