#Akin

1 messages · Page 1 of 1 (latest)

fringe treeBOT
wooden remnant
#

hello! where do you expect to see the promotion code field, but are not currently seeing it?

unborn spade
#

In the stripe checkout page

#

I copied the code in the checkout snippet generator and added it to my website but noticed the promotion code field not showing up when the page is triggered

#

Seeing this instead

wooden remnant
#

did you enable this?

unborn spade
#

Yes I did

#

When i go straight to the payment link, it shows up but the code from the checkout snippet doesnt show it

#

I am using the code snippet from here

wooden remnant
#

ah, just so you're aware, that Checkout code snippet has limited functionality. redirectToCheckout is deprecated and doesn't support many new features.

#

I would just use the Payment Link url

unborn spade
#

Ah okay! Does this create a new stripe customer when used as i will want this to be the case?

wooden remnant
#

it should yes, but it won't deduplicate customers on your behalf

#

so it'll create more than one customer for the same email

unborn spade
#

Ah okay and no way to prevent duplicate?

#

Also, i have a data in the product metadata that i am hoping of accessing from checkout session, how can this be achieve?

wooden remnant
#

are you using mode=payment, or mode=subscription?

unborn spade
#

Mode=payment

wooden remnant
unborn spade
#

Ah okay, How do i add it to the checkout session sent from the response of the payment link?

wooden remnant
#

on the payment link page, there's this section

unborn spade
#

Yeah i did that but when i retrieved the session info using the session id the metadata was empty

#

I will try it again and let you know if it is still not showing up

#

Preventing the customer duplicate from payment link, is there a way to stop that?

wooden remnant
#

not at the moment, there're some future plans for this, but no timeline that I can share at this point

unborn spade
#

Oh okay, thanks

wooden remnant