#arvindsinghu-payment-links

1 messages ยท Page 1 of 1 (latest)

strange folio
#

Hi there ๐Ÿ‘‹ just to clarify, are you using our prebuilt Checkout page?

naive sundial
#

yup

strange folio
#

I believe you can pass some values via the success_url parameter, but please allow me some time to confirm what you can pass there.

naive sundial
#

sure

strange folio
#

Thank you for your patience! I think this is the flow that you're looking for this document explains the flow that you're looking for. Essentially you'll append the checkout session ID to the success_url and then use that to retrieve the associated customer information.
https://stripe.com/docs/payments/checkout/custom-success-page

naive sundial
#

also, can I pass the promotion to the buy.stripe.com products link it self?

#

let say i want to pass a promo code directly to the checkout page, can i do using the paramenter?

strange folio
#

Oh, are you using Payment Links?

naive sundial
#

right

#

I added the product in the stripe itself

#

as it's easy for us to manage a lot of things easily

strange folio
#

Ah sorry, I should have picked up on that earlier.

naive sundial
#

so, how can I add the promo in the buy link so that it apply for the users

#

sorry, I was not clear with my words ๐Ÿ˜‚

strange folio
#

Let me dig into that a little bit, I'll also need to see if there is a way to get email as you asked (the previous advice was for Checkout Sessions which are related but a bit different)

naive sundial
#

I know

#

that's why i ignored it lol

strange folio
#

I'm still looking into whether you can pass a promo code or discount into a payment link, but out of curiosity, if you want the discount to apply to such a large audience would it make more sense to just create another price for the product?

#

arvindsinghu-payment-links

#

Thank you for your patience, currently it's not possible to pass a discount or promo code as a query parameter into a payment link.

#

Nor is there a way to grab the customer's email address from that flow. If these are features that you'd need then you'd need to look into using a Checkout Session rather than a payment link.