# API call to make payments

**URL:** <https://community.glideapps.com/t/api-call-to-make-payments/59019>\
**Category:** Ask for Help\
**Created:** [March 11, 2023, 5:32am UTC](https://community.glideapps.com/t/api-call-to-make-payments/59019 "2023-03-11T05:32:00Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gary\_Willmott](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gary_willmott/32/837_2.png) [@Gary\_Willmott](https://community.glideapps.com/u/Gary_Willmott)\
**Post date:** [March 11, 2023, 5:32am UTC](https://community.glideapps.com/t/api-call-to-make-payments/59019/1 "2023-03-11T05:32:00Z")

</div>

I finally upgraded to Pro to make payments, however I’m a bit stuck on where to start??

I’ve been using Paystack to make payments up until now, however I’ve just been directing them to a [Payment Page](https://paystack.com/pay/sd180) which isn’t ideal, as I have to manually check that users have paid and then send them the non-watermarked photos

I’ve gone through the [API for Beginners](https://www.glideapps.com/docs/reference/data-sources/glide-tables-api-for-beginners)

And I’m referencing the [PayStack documentation on accepting payments](https://paystack.com/docs/payments/accept-payments/#redirect)

I built an integration with Make

 ![Screenshot 2023-03-11 at 07.19.38](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/3/7/375ce370cb3927ee26cc4bfe3a83f98091fca497.png)

I just don’t understand how to send the information back and authenticate

---

<div class="post-metadata">

**Author:** ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)\
**Post date:** [March 11, 2023, 5:34am UTC](https://community.glideapps.com/t/api-call-to-make-payments/59019/2 "2023-03-11T05:34:58Z")

</div>

Do you have PayPal or Stripe in your country? I have ready scripts… so you won’t need Make.

---

<div class="post-metadata">

**Author:** ![Gary\_Willmott](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gary_willmott/32/837_2.png) [@Gary\_Willmott](https://community.glideapps.com/u/Gary_Willmott)\
**Post date:** [March 11, 2023, 5:42am UTC](https://community.glideapps.com/t/api-call-to-make-payments/59019/3 "2023-03-11T05:42:15Z")

</div>

Paypal yes, Stripe no  
Paypal is a pain though, however open to try make it work

PayStack is owned by Stripe and is almost exactly the same

---

<div class="post-metadata">

**Author:** ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)\
**Post date:** [March 11, 2023, 6:36am UTC](https://community.glideapps.com/t/api-call-to-make-payments/59019/4 "2023-03-11T06:36:49Z")

</div>

I have a working sample of PayPal and Stripe integration without any third-party platforms… just google script.

> **[StructureArt DIGITAL](https://hello.structureartdigital.com/dl/b33482)**
>
> StructureArt Digital Page is a user-aware, interactive system that allows you to connect google sheets with a web application. All data is stored and calculated in google sheets and displayed in real-time on the web. Connect your calendars and...

---

<div class="post-metadata">

**Author:** ![Gary\_Willmott](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gary_willmott/32/837_2.png) [@Gary\_Willmott](https://community.glideapps.com/u/Gary_Willmott)\
**Post date:** [March 11, 2023, 5:54pm UTC](https://community.glideapps.com/t/api-call-to-make-payments/59019/5 "2023-03-11T17:54:34Z")

</div>

This looks great Uzo, do you have a tutorial for this?

---

<div class="post-metadata">

**Author:** ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)\
**Post date:** [March 11, 2023, 10:23pm UTC](https://community.glideapps.com/t/api-call-to-make-payments/59019/6 "2023-03-11T22:23:49Z")

</div>

I do not have a tutorial… I have a template for Apps:

> **[Templates Market - ready to use app templates, with google scripts and CSS codes](https://templates-market-sa.glideapp.io/full)**
>
> ready to use templates, with google scripts and CSS codes

Unfortunately, Pages templates do not work, so I would have to do it from scratch in your account, or you can just copy scripts and logic from the Apps template.

---

<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 12, 2023, 12:57am UTC](https://community.glideapps.com/t/api-call-to-make-payments/59019/7 "2023-03-12T00:57:16Z")

</div>

You might get ideas from this.

> [@gem\_stone Monetize your membership app using Payhere + Make (Updated 2024)](https://community.glideapps.com/t/create-a-membership-app-using-payhere/26646):
>
> Updated 2024! wave Hey fellow Gliders! I just released a 3-part series on using [Payhere](https://payhere.co/?affiliate=aYXvr) + [Make](https://www.make.com/en/register?pc=robert) to monetize a Glide app! Since Glide doesn’t offer a native way of monetizing an app or accepting payments, we need to build it ourselves. I’m starting the series with demonstrating how to accept one-off payments and how to create membership apps by allowing users to subscribe to an app in order to gain access to premium content hidden behind a paywall. popcorn Enjoy! Part 1: The Setup [[M…](https://www.youtube.com/watch?v=BNZtlZkyZvs)

---

<div class="post-metadata">

**Author:** ![Gary\_Willmott](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gary_willmott/32/837_2.png) [@Gary\_Willmott](https://community.glideapps.com/u/Gary_Willmott)\
**Post date:** [March 12, 2023, 11:41am UTC](https://community.glideapps.com/t/api-call-to-make-payments/59019/8 "2023-03-12T11:41:12Z")

</div>

Still haven’t come right?

Uzo’s solution uses Google Sheets  
Roberts solution uses PayHere, however I’m using PayStack. It doesn’t look like you can send parameter to PayStack Payment page:(

It looks like I’m able to initialize the transaction, however I can’t seem to accept a payment?  
It seems like [WebHooks](https://paystack.com/docs/payments/webhooks) is the answer? However it’s beyond my technical ability

If anyone can assist, I would really appreciate it 🙏🙏🙏🙏

---

<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 13, 2023, 12:10am UTC](https://community.glideapps.com/t/api-call-to-make-payments/59019/9 "2023-03-13T00:10:45Z")

</div>

Is there an advantage of using PayStack over alternatives? I’m just asking because I haven’t used it and have used PayHere to integrate payments, especially subscriptions like Robert, when needed.

---

<div class="post-metadata">

**Author:** ![Gary\_Willmott](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gary_willmott/32/837_2.png) [@Gary\_Willmott](https://community.glideapps.com/u/Gary_Willmott)\
**Post date:** [March 24, 2023, 5:36am UTC](https://community.glideapps.com/t/api-call-to-make-payments/59019/10 "2023-03-24T05:36:10Z")

</div>

PayStack is one of the largest solutions that is used in Africa and South Africa as Stripe isn’t supported there. Stripe actually bought PayStack, so it works very similar

---

<div class="post-metadata">

**Author:** ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)\
**Post date:** [March 24, 2023, 5:43am UTC](https://community.glideapps.com/t/api-call-to-make-payments/59019/11 "2023-03-24T05:43:48Z")

</div>

My solution does not need Google Sheets to be connected to Glide, and it uses Google Script to handle transactions and send feedback to Glide. Also, it will record transactions and adjust inventory. All data stays in google sheets and can be read/written by Glide through the fetch JSON column.

---

<div class="post-metadata">

**Author:** ![Gary\_Willmott](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gary_willmott/32/837_2.png) [@Gary\_Willmott](https://community.glideapps.com/u/Gary_Willmott)\
**Post date:** [March 24, 2023, 5:46am UTC](https://community.glideapps.com/t/api-call-to-make-payments/59019/12 "2023-03-24T05:46:30Z")

</div>

Thanks Uzo, but I really want to learn how to conquer this by myself. For me Surf Diaries isn’t a business or traditional startup. It’s a learning exercise

---

<div class="post-metadata">

**Author:** ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)\
**Post date:** [March 24, 2023, 5:48am UTC](https://community.glideapps.com/t/api-call-to-make-payments/59019/13 "2023-03-24T05:48:53Z")

</div>

That is great… I learn my tricks the same way… lots of research, study, and practice. It took me two months to master payment solutions.

---

<div class="post-metadata">

**Author:** ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)\
**Post date:** [March 24, 2023, 6:00am UTC](https://community.glideapps.com/t/api-call-to-make-payments/59019/14 "2023-03-24T06:00:58Z")

</div>

To integrate PayStack payment with Glide, you can follow these steps:

1. Create a PayStack account: If you don’t have a PayStack account, create one by visiting their website ([paystack.com](http://paystack.com)). Once you’ve created an account, log in to your dashboard.
2. Generate PayStack API keys: After logging in, navigate to the “API Keys” section of your dashboard. Generate a new set of API keys if you haven’t already. You’ll need these API keys to connect Glide with PayStack.
3. Install the PayStack API plugin in Glide: In Glide, go to the “Settings” tab and click on “Plugins”. Search for the “PayStack API” plugin and click “Install”. Once installed, you’ll need to configure the plugin with your PayStack API keys.
4. Set up a payment button: In Glide, create a button or link that will trigger the PayStack payment process. You can do this by adding a “Link” component to your app and setting the link URL to the PayStack payment page URL.
5. Test the payment process: Before launching your app, it’s important to test the payment process to ensure it’s working correctly. You can do this by making a test payment with a small amount using a test card provided by PayStack.

Note: PayStack has detailed documentation on how to integrate their payment gateway with third-party applications. I would recommend checking out their documentation for more information on how to integrate PayStack with Glide.

---

<div class="post-metadata">

**Author:** ![Gary\_Willmott](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gary_willmott/32/837_2.png) [@Gary\_Willmott](https://community.glideapps.com/u/Gary_Willmott)\
**Post date:** [March 24, 2023, 6:12am UTC](https://community.glideapps.com/t/api-call-to-make-payments/59019/15 "2023-03-24T06:12:35Z")

</div>

> [@Uzo](#):
>
> Install the PayStack API plugin in Glide: In Glide, go to the “Settings” tab and click on “Plugins”. Search for the “PayStack API” plugin and click “Install”. Once installed, you’ll need to configure the plugin with your PayStack API keys.

I don’t see any “ **Plugins** ” tab? I only see **Integrations**?  
However there is only Zapier and GA

![Screenshot 2023-03-24 at 08.12.01](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/f/1/f165f9e3d6bbfe73227aa16aa1f669c9d4259014.png)

---

<div class="post-metadata">

**Author:** ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)\
**Post date:** [March 24, 2023, 6:26am UTC](https://community.glideapps.com/t/api-call-to-make-payments/59019/16 "2023-03-24T06:26:50Z")

</div>

I never deal with PayStack, so this is general info… My expertise is Stripe and PayPal…  
plug ins tab is on glide paid account

---

<div class="post-metadata">

**Author:** ![Gary\_Willmott](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gary_willmott/32/837_2.png) [@Gary\_Willmott](https://community.glideapps.com/u/Gary_Willmott)\
**Post date:** [March 24, 2023, 6:32am UTC](https://community.glideapps.com/t/api-call-to-make-payments/59019/17 "2023-03-24T06:32:47Z")

</div>

Ok I have been fiddling around and have come close  
Here is my solution so far:

1. Customer clicks purchase and it calls a Webhook through Make
2. The Webhook makes a request to PayStack to “Initialise Transaction”
3. The Output from the Init transaction is an Authorization URL, Access Code and Reference  
 ![Screenshot 2023-03-24 at 08.03.13](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/2/4/2411238645c9a04f2a75eb368b7eaf45bdb6b0bc.png)
4. Then I am using a HTTP request to send the Variables back to Glide and Open up the Auth URL in Glide
5. Check the grabs here  
 ![Screenshot 2023-03-24 at 08.27.32](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/5/2/52b115d2d6493f54cab18051d52dc75f5e76dade.png)  
 ![Screenshot 2023-03-24 at 08.27.26](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/1/1/1153e1f705b184010e6b6ac310119ebde2bda680.png)
6. _However the Amount and Date don’t come into the app?_ **Any API experts understand this?**  
 ![Screenshot 2023-03-24 at 08.29.42](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/7/a/7a201ff0e1b5f83ca48ef1173809d96c753a1256.png)

Once the values come through I’m hoping that I can open that URL, which would be something like [this](https://checkout.paystack.com/tgvyb3agdtzkjh7) then wait and do a seperate call to Verify the transaction and update the payment table

---

<div class="post-metadata">

**Author:** ![Gary\_Willmott](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gary_willmott/32/837_2.png) [@Gary\_Willmott](https://community.glideapps.com/u/Gary_Willmott)\
**Post date:** [March 24, 2023, 6:34am UTC](https://community.glideapps.com/t/api-call-to-make-payments/59019/18 "2023-03-24T06:34:09Z")

</div>

I don’t even see Stripe and Paypal and I’m on the Pro account?

---

<div class="post-metadata">

**Author:** ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)\
**Post date:** [March 24, 2023, 6:35am UTC](https://community.glideapps.com/t/api-call-to-make-payments/59019/19 "2023-03-24T06:35:55Z")

</div>

![Screen Shot 2023-03-24 at 2.34.42 AM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/5/e/5e13ebb6920e20031085a155da9e2a7fc42e9968.jpeg)

You need to have business 😉  
That’s why it is good to know to code… I have everything for free and exactly the way I want it.

I hope Thin will help you with Make… I do not use these platforms…

---

<div class="post-metadata">

**Author:** ![Gary\_Willmott](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gary_willmott/32/837_2.png) [@Gary\_Willmott](https://community.glideapps.com/u/Gary_Willmott)\
**Post date:** [March 24, 2023, 1:09pm UTC](https://community.glideapps.com/t/api-call-to-make-payments/59019/20 "2023-03-24T13:09:42Z")

</div>

> [@Gary\_Willmott](#):
>
> _However the Amount and Date don’t come into the app?_ **Any API experts understand this?**

Anyone have a clue on why the amount and date don’t come into the App?

[Next page](https://community.glideapps.com/t/api-call-to-make-payments/59019.md?page=2)
