#Talon-discount-codes
1 messages ยท Page 1 of 1 (latest)
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?
I have created a promo code which gives 50% discount
now I want users to add this code in the checkout page
promo_1LXqMjF9Zo1nikLis5dJ33HZ
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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?
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
aha i see
what is this then?
if we set this to true, can't we allow users to add code?
this sounds confusing
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