#insula.
1 messages ยท Page 1 of 1 (latest)
Hi ๐
Are you trying to apply the code before the customer interfaces with the Checkout page or just provide the option?
hello!
i'm trying to make it so that when the user goes to checkout, there is an option to add a coupon code
i have already created the coupon codes but the input isn't showing in the checkout
Okay can you send me the request ID for an API request were you are creating a Checkout Session where you don't see this behavior
what do you mean?
Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
And are you following the steps we outline for using discounts with Checkout Sessions here? https://stripe.com/docs/payments/checkout/discounts
i created the coupon within the dashboard and i'm trying to make an input with the allow-promotion-codes line
let me find the request id for you mate
req_3kvjzOtzN1aXKp
or do you want me to send you the whole body?
Nope, the ID is all I need
There's no allo_promotion_codes parameter in that request
hmm okay. that's weird
can i send you my full code?
i made all the coupons through the dashboard, they're all in test mode as i'm on localhost
i have tried to do it on live site but that's not working either
Live chat isn't a good format to perform code reviews
And that code is way too much for me to read
my apologies
For whatever reason your PHP code is not passing the required parameter
how could i go about debugging this then?
so it's a full backend problem?
we have some apis i believe
That is where the API request is coming from
so it's a php problem? not a node one?
So I would review the PHP code
The request you send me was made using the Stripe PHP library
So that is what I'm going off of
i don't seem to have any php code in my vue project. i think we had a developer work on some apis using php, maybe they're interferring?
so it'll be in my cms or something?
That I can't speak to. However, it's the PHP code that is sending the API request and that is where the parameter is not being passed to Stripe.
okay thanks