šŸ’Ž Monetize your membership app using Payhere + Make (Updated 2024)

That’s great news!

2 Likes

Great! Is converting the Make steps to Zapier pretty simple? Or does Make do unique things that Zapier cannot? I only ask because I already have a yearly sub with Zapier.

Make has easy-to-use routers, iterators, JSON parsers and set/get variable tools. I’m sure there are Zapier versions of those things.

1 Like

I feel the router/branching of logics is much easier to do with Make, though.

Undoubtedly!

1 Like

Happened just yesterday actually. I’ve tried credit cards of different nationalities (american & mexican) without luck, the american card was actually blocked because of this. I thought it could be an issue of the URL in the app I’m working on but I didn’t have any luck on the direct access from the payhere link. I’m quite stumped as to what it could be.

Able to accomplish this on the free version of Make?

Yes.

2 Likes

Contact Payhere support. Tell them I sent you. They are super responsive.

support@payhere.co

They only limit the amount of executions (1000/month is still great imo), the number of active scenarios and interval between scheduled scenario executions on the free plan. You can deffo use the free plan to try out Make.

Hey Robert!

I subscribed! Thank you for the great tutorial and I believe I got it all working! Question, when someone makes a payment, they end up at a Thank you page with a ā€œDoneā€ button. If I don’t change this, then it goes to my Page’s URL, but because Pages cant be embedded, I get that frowning face page. What are your suggestions so when people click done, it just closes the window? Can we just hide the Done button so people just close the window?

What I do is make the web embed component visible only if they don’t have a subscription. Otherwise they get a hint text thanking them for their purchase with a button that says continue which close is the overlay. I’m away from my computer right now, but I’ll create a Loom on the ins and outs of it all.

Either that, or you can go super simple and point your success URL to some embeddable public page like a Google Doc that says ā€œthank you for your purchase. You can now close the screen.ā€ :upside_down_face:

2 Likes

Here it is in action:

3 Likes

Thanks!

Hey @Robert_Petitto,

I previously implemented your Payhere Flow and got it all working. I just updated to allow a 30 day free trial. However, because there has been no payment yet, none of the PlanLevel and payment info passes through.

I’m guessing I could create a Free Trial Start Column and log the date they sign up. Then add another column with +30 for Free Trial End Column. However, I use the PlanLevel to adjust their usage. Do you know if there is a way to pull all this info utilizing the Free Trial?

My Link Construct with the custom_field_plan_name pointing to my PlanLevel’s

This is my Make path. Appears it went only to the first part of adding a Row:

1 Like

That’s a great question. Let me play around with it a bit later this evening and get back to you.

1 Like

So, typically, when a new subscription is created in Payhere, two webhooks are called. One for the payment and one for the subscription. When you attach free trial to a payment link, the payment event doesn’t get called, so it never runs through to the second path.

If you’re certain EVERY payment link you create is going to have a free trial attached to it, then you could just modify the first Add Row HTTP module to include the additional subscription information. If you plan on having some payment links have trials and some without, then the most straightforward solution would be to add another HTTP module to the end of the first path that performs a ā€œSet columnā€ call via Glide’s API. Between the add to Data Store and this module, add a filter to check to see if the member is subscribing to a free trial (ā€œsubscription statusā€ contains ā€œtrialā€).

Does this make sense or would you like me to create a video? Happy to do so!

2 Likes

Thanks!

I plan on having a free trial on every payment link, so I’ll try modifying the first Add Row Http module and let you know if I get stuck.

I might need a video lol. I added a customer created date to my Trial Start Date, that works. However, I can’t seem to locate my Plan Level from the options as it only gives me plan_level vs the actual plan name.

Screenshot 2023-01-08 at 5.36.12 PM

I am assuming ā€œplan.custom_fields: labelā€ is incorrect. However under any of my custom_fields, I do not see plan_level. This is my hidden field in PayHere

Hm. Ya…there should be a field under ā€œsubscriptions → custom fields → plan_levelā€.

Alright got it to work! I had to create a brand new Payment Link and then it found the custom field. :slight_smile:

Do you know if after the trial period ends, will Payhere automatically send another Webhook that will update the payment info, subscriber info and payment dates?