#primalfreeze_api
1 messages ¡ Page 1 of 1 (latest)
đ 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/1351718203310604481
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Do you have the URL?
So this is a Checkout Session, which has expiration of 30 mins
What you want to share is a PaymentLink
Oh bugger. That makes sense. Presumably created in a somewhat similar way?
Docs will show me of course
I'll need to do it programatically so can't create via Dashboard
Here you go https://docs.stripe.com/api/payment-link/create
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Thanks, I'll give it a look
Presumably it's going to be a different webhook to catch too?
Nope you should still receive checkout.session.completed
PaymentLink will generate Checkout Session
Ok perfect, thanks again
Can I add a discount/coupon for an arbitrrary value when I create a Payment link? I've spoken to my client and while she does have standard pricing, she can arbitrarily just give discounts. I.e. regular price is 2x 795 (total of 1590) but due to ongoing issues, she's charging them only 1k total.
Um PaymentLink doesn't have a discounts parameter like Checkout, sorry... But it has allow_promotion_codes
You can give your customer a promotion code beforehand
And it can be either a flat discount or a % off by the look of things?
Could be either of those, yes. Promotion Code is belongs to a Coupon, which has those 2 options