#kanohian
1 messages · Page 1 of 1 (latest)
Can you share the ID of promo code (promo_123) and payment link?
Promo codes can be configured to only apply to certain products
Well the promo code's coupon can: https://stripe.com/docs/api/coupons/create#create_coupon-applies_to
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
promo_1MdxEIGGCGfoPLShWTLT1uwz
That promo code's coupon is configured to only apply to pr_1IW1a3GGCGfoPLShpB8aFZEQ
to a payment request ???
I am using paymentlinks
sometimes I create sort of dynamic prices to products
if I create one of these dynamic prices in a payment link promo code does not work
That's because your coupon was created to only apply to the above product id
You can create a coupon that isn't restricted by product
yes but the dynamic price applies to same product
is just add another price to the product
and create the plink with it
Can you share the payment link id?
ok
plink_1MdxEJGGCGfoPLShWnc0Wwjr
this is the product
prod_J8IABkZfRHGiOo
and the promocode coupon 5VeUlrzR
That payment link is actually for price_1MdwouGGCGfoPLShig5MBdY0 which is for product prod_I29TkGOro63maC:
https://dashboard.stripe.com/test/logs/req_Uq3TaaTu0mAQdg
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
So that's why coupon isn't working
Different products