#waqas ahmad
1 messages · Page 1 of 1 (latest)
Hi there, how can I help?
I generate a payment link for customer. I want customer will enter promo code and get discount. Is there any way to achieve this?
Sure, when you create a paymentLink, you can set allow_promotion_codes to true https://stripe.com/docs/api/payment_links/payment_links/create?lang=node#create_payment_link-allow_promotion_codes
You can also do it via Dashboard, there's a option to enable promo code when you create a payment link.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.