#lipefsilva_api

1 messages ¡ Page 1 of 1 (latest)

dense aspenBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1426258665555365968

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

frank gorge
#

I need a static payment link which is sent to thousands of customers to redirect to different urls based on the user id.

Ex.:

User 42 will be redirected to https://myurl/?id=42 after payment
User 57 will be redirected to https://myurl/?id=57 after payment and so on

#

I know that i can create dynamic payment links programatically, but this is an issue for me, we have a team which go through the payment links to send the orders

frank gorge
flat rose
frank gorge
#

I've tried that approach and got 2 issues:

  1. I have to get the address data to confirm the user has requested the item
  2. I have cases in which the customer will get a 100% discount, and apparently the checkout session doesn't support it
flat rose
#

Payment Link uses Checkout Session under the hood. Does your current Payment Link support 100% discount while Checkout Session doesn't?

#

I have to get the address data to confirm the user has requested the item
I'm not too sure what you meant by this. How is it related to Stripe's integration?

frank gorge
#

With a checkout session, I'd have to provide the address before, instead of asking the user input

#

This link i showed you also works with 100% discount

flat rose
#

This link i showed you also works with 100% discount
Do you have a promo code with 100% off promo code for me to try?

frank gorge
#

NEWSCOPE

please insert "test" in one of the fields

frank gorge
flat rose
#

In my own testing! I can apply 100% off discount in Checkout Session and complete the order. Are you facing any challenge?

frank gorge
#

Do you have any code reference for that?

#

I tried creating a payment checkout session programatically, but would always get an error when used the coupon code, because the total value could not be $0

frank gorge
flat rose
#

Could you share the Checkout Session ID (cs_123) that doesn't work, so that I can take a look?

frank gorge
#

Oh, I don't have them atm, since I was working on that a few weeks ago

#

I'll generate a new one

dense aspenBOT
frank gorge
#

Working on it

valid cobalt
#

Hi taking over here

#

So if you're on a version older than that, then that's why

frank gorge
#

Yes, mine's older than that

valid cobalt
#

Yeah that'd do it then

#

You'd just need to switch to a newer version to take advantage of this functionality

frank gorge
#

Thank you, let me try that

#

@valid cobalt would there be a problem if I used the newer version in one service without changing others?

valid cobalt
#

I don't know enough about your integration to say

#

You can also use a different api version on a per-request basis

#

So you could just do it for the create checkout session call and that's it if you like

frank gorge
#

and for the other parts i could use the current version?

valid cobalt
#

yeah

#

What sdk are you using?

#

Which language

frank gorge
#

JS

valid cobalt
#

And leave the rest of your integration the same