#sethu_best-practices

1 messages ยท Page 1 of 1 (latest)

north abyssBOT
#

๐Ÿ‘‹ 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/1506215868265136138

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

eternal ingot
#

Please help us about how we can send the dicounts amount lineItems for the strpePayment link.

kind widget
#

hey there ๐Ÿ‘‹ happy to help

#

taking a look at your request above

eternal ingot
#

Sure

kind widget
#

so the reason you're getting the error is because you're trying to pass a discounts property to the Create Payment Link API, which doesn't support this

you can see that discounts isn't mentioned as a supported property here: https://docs.stripe.com/api/payment-link/create

#

the Payment Links API is used to create reusable links to share with multiple customers, while the Checkout Session API is used to create a single-use session, which is why they're different here

#

otherwise, if you want to create a single-use payment page, then the Checkout Sessions API might be more suitable

north abyssBOT
eternal ingot
#

ok