# 🤑 Enable Users to Subscribe to Your Glide App Using Payhere + Call API Columns

**URL:** <https://community.glideapps.com/t/enable-users-to-subscribe-to-your-glide-app-using-payhere-call-api-columns/65204>\
**Category:** Community Resources\
**Tags:** api, tutorial\
**Created:** [August 20, 2023, 3:17am UTC](https://community.glideapps.com/t/enable-users-to-subscribe-to-your-glide-app-using-payhere-call-api-columns/65204 "2023-08-20T03:17:40Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [August 20, 2023, 3:17am UTC](https://community.glideapps.com/t/enable-users-to-subscribe-to-your-glide-app-using-payhere-call-api-columns/65204/1 "2023-08-20T03:17:40Z")

</div>

# 👋 Hey fellow Gliders

In this video, learn how to utilize [Glide Call API](https://community.glideapps.com/t/call-api-tutorial-connect-almost-anything-to-glide/64982/2) and [Payhere](https://payhere.co/?affiliate=aYXvr) payment gateway to enable your users to easily subscribe and access premium features within your app.

🎉 No more Make. No more Zapier.

### This video covers:

- Glide Call API and Payhere: no more middleman needed in order to create a smooth subscription experience
- Setting Up Payhere Account: set up user-specific payment plan links
- Glide App Configuration: configure Call API columns, create a user-friendly subscription screen, and design an intuitive subscription flow
- Handling Subscription Status: manage subscription statuses using the Glide Call API. Grant access to premium content only for subscribed users

One note is that at 25:25, I discuss a technique known as cache busting in order to refresh the endpoint in order to fetch the latest subscription status. In the video I use the “now” value which would effectively call the API every 10 seconds = LOTS of updates.

To mitigate, you can use a Math column to update, let’s say, every 24 hours. Use a math column to calculate a daily value `YEAR(D)*10^4+MONTH(D)*10^2+DAY(D)` where `D` is `now`. Then use this value instead of `now`.

🍿 Enjoy!

[![](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/9/d/9d35000411a8e0819841dfe3d713fc2dbf7181b9.jpeg "Enable Users to Subscribe to Your Glide App Using Payhere + Call API Columns") ](https://www.youtube.com/watch?v=pGjMm-RFXZY)

---

_[View the full topic](https://community.glideapps.com/t/enable-users-to-subscribe-to-your-glide-app-using-payhere-call-api-columns/65204)._
