# Stripe Payment Link API

**URL:** https://community.glideapps.com/t/stripe-payment-link-api/71493
**Category:** Ask for Help
**Created:** [March 7, 2024, 9:01am UTC](https://community.glideapps.com/t/stripe-payment-link-api/71493 "2024-03-07T09:01:32Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Kurt\_Penberth](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/kurt_penberth/32/66463_2.png) [@Kurt\_Penberth](https://community.glideapps.com/u/Kurt_Penberth)
#### Post date: [March 7, 2024, 9:01am UTC](https://community.glideapps.com/t/stripe-payment-link-api/71493/1 "2024-03-07T09:01:32Z")

</div>

Has anyone been able to use the Stripe payment links API with glide to create payment links on demand?

I want to determine a price based on a number of factors, and either:  
a: a payment link with this price already exists, and it opens the link  
or b: a price doesn’t exist, the payment link is created via api, and it opens the link

I had a set up similar in google apps script. Wondering if its possible in Glide

---

<div class="post-metadata">

### Author: ![Evgeny1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/evgeny1/32/68231_2.png) [@Evgeny1](https://community.glideapps.com/u/Evgeny1)
#### Post date: [March 7, 2024, 1:21pm UTC](https://community.glideapps.com/t/stripe-payment-link-api/71493/2 "2024-03-07T13:21:53Z")

</div>

I use a different way around it.

I don’t use Stripe payment links at all. Instead, I generate a session and apply the discount that’s stored in the user profile (a tier discount of sorts). Then I show a screen to the customer with the “pay” button that links to the hosted checkout in Stripe for the session I generated.

---

<div class="post-metadata">

### Author: ![burningmikey](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/burningmikey/32/49706_2.png) [@burningmikey](https://community.glideapps.com/u/burningmikey)
#### Post date: [March 7, 2024, 1:46pm UTC](https://community.glideapps.com/t/stripe-payment-link-api/71493/3 "2024-03-07T13:46:53Z")

</div>

Yes, I find that Stripe checkout session is more flexible and easy to use than Stripe payment links.

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [March 8, 2024, 12:30am UTC](https://community.glideapps.com/t/stripe-payment-link-api/71493/4 "2024-03-08T00:30:24Z")

</div>

I did use it in one of my old projects, but my use case was a bit different. I only generate a link after a contract was signed, so I utilized some modules in Make to do it.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/1/d/1dd42a01546806b05a8d0691b4dead90dadf7539.png)

In my case, I generate products first, then finally create the link.

I think in your case, you can add a helper table where you store all the generated links, alongside their product specifications. If the user’s inputs match, you show the already generated link, else you generate a new one using either Call API/Make.

---

<div class="post-metadata">

### Author: ![teshannon](https://avatars.discourse-cdn.com/v4/letter/t/d26b3c/32.png) [@teshannon](https://community.glideapps.com/u/teshannon)
#### Post date: [March 26, 2024, 2:37am UTC](https://community.glideapps.com/t/stripe-payment-link-api/71493/5 "2024-03-26T02:37:52Z")

</div>

Could you give an example of how to set this up? I have payment links working, but I do not like that I cannot redirect back to a confirmation page and I think Stripe Checkout may be the way to go; I just do not know how to set it up. Thank you!
