#theca-checkout
1 messages · Page 1 of 1 (latest)
coupon id DEFIITA25
session
cs_live_b1CCYEIMVbyHOU983w1Gmme5fkUFHJ11W37aAZst6dRb7q52fU7qiCanxz#fidkdWxOYHwnPyd1blppbHNgWjA0Tl9DNzVGPUpnSHxJT1BSYn9sbUIxT39Uc1NQYnZtSFAzM0NLbGNNU1dHc1RzM05cXH12dT1XN2hkQWFhfWRNb31pTmZuVkIxVnJKcUdJQUkwbVM2X0Y1NTVBX199R21MZCcpJ2hsYXYnP34nYnBsYSc%2FJzJgZzdgNGY2KGM2ZDAoMTNjYyhkNDxnKDVnZGcwYzc3MGc3YWFjYT0zZicpJ2hwbGEnPycxYWYwZzBmZihmNDdnKDFmYTMoPTMxNShjMDE1YTxgNjxnNjJhPWZmNjQnKSd2bGEnPydkZDZnMj0xYChkNTE2KDFhPWQoZ2FkMyg0ZzM9ND09Nz0yMmA8NjQ9NGcneCknZ2BxZHYnP15YKSdpZHxqcHFRfHVgJz8naHBpcWxabHFgaCcpJ3dgY2B3d2B3SndsYmxrJz8nbXFxdXY%2FKipmd3x1cWpgfXVqaGxpZGsrZmpoJ3gl
Thanks! Give me a few minutes to look into this.
So when you created your coupon you set it to only apply to 3 products (prod_LKZgqMvjlNr6tx, prod_LKZgrwro3lnVU7, prod_LKZgIVunZqiJZ4). But when you created your Checkout Session you didn't pass any price ID or product ID. So it's expected that the coupon can't be applied.
To solve this you should either: remove the product restrictions from your coupon, or add price ID (that match the product ID of your coupon) when creating the Checkout Session https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items-price
You could also set the Product ID in the Checkout Session (if you don't want to use a price ID): https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items-price_data-product