#insula.

1 messages ยท Page 1 of 1 (latest)

jade yewBOT
celest delta
#

Hi ๐Ÿ‘‹

Are you trying to apply the code before the customer interfaces with the Checkout page or just provide the option?

chrome dust
#

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

celest delta
#

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

chrome dust
#

what do you mean?

celest delta
chrome dust
#

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?

celest delta
#

Nope, the ID is all I need

#

There's no allo_promotion_codes parameter in that request

chrome dust
#

hmm okay. that's weird

celest delta
chrome dust
#

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

celest delta
#

Live chat isn't a good format to perform code reviews

#

And that code is way too much for me to read

chrome dust
#

my apologies

celest delta
#

For whatever reason your PHP code is not passing the required parameter

chrome dust
#

how could i go about debugging this then?

#

so it's a full backend problem?

#

we have some apis i believe

celest delta
#

That is where the API request is coming from

chrome dust
#

so it's a php problem? not a node one?

celest delta
#

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

chrome dust
#

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?

celest delta
#

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.

chrome dust
#

okay thanks