# Create online payment using webhook

**URL:** <https://community.glideapps.com/t/create-online-payment-using-webhook/77224>\
**Category:** Ask for Help\
**Created:** [October 21, 2024, 12:08am UTC](https://community.glideapps.com/t/create-online-payment-using-webhook/77224 "2024-10-21T00:08:59Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Keith\_Chikumbirike](https://avatars.discourse-cdn.com/v4/letter/k/5daacb/32.png) [@Keith\_Chikumbirike](https://community.glideapps.com/u/Keith_Chikumbirike)\
**Post date:** [October 21, 2024, 12:08am UTC](https://community.glideapps.com/t/create-online-payment-using-webhook/77224/1 "2024-10-21T00:08:59Z")

</div>

Hello everyone

Im trying to establish away for users to subscribe online. However im stuck with the 1st stage as info passed through webhook returns empty info except for the data I have ruled out. I tried using JSON and mapping data manualy but i keep getting the same result. Below is a screen shot and a link to the payment platform im trynig to link (page on info required)

Kindly assist

> **[Initiate a transaction · Paynow Developer Hub](https://developers.paynow.co.zw/docs/initiate_transaction.html)**
>
> When the customer is ready to make payment the merchant site must perform an Initiate Transaction

 ![Screenshot (201)](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/1/7/173a743062d65369e8e343c66bf15dc0eb903d54.png)

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [October 21, 2024, 2:01am UTC](https://community.glideapps.com/t/create-online-payment-using-webhook/77224/2 "2024-10-21T02:01:34Z")

</div>

Your HTTP module is returning an error. Check what that error is, I suspect it will provide a clue.

---

<div class="post-metadata">

**Author:** ![Keith\_Chikumbirike](https://avatars.discourse-cdn.com/v4/letter/k/5daacb/32.png) [@Keith\_Chikumbirike](https://community.glideapps.com/u/Keith_Chikumbirike)\
**Post date:** [October 21, 2024, 8:38am UTC](https://community.glideapps.com/t/create-online-payment-using-webhook/77224/3 "2024-10-21T08:38:11Z")

</div>

The error module has reported the following error;

“The operation failed with an error. Validation failed for 1 parameter(s).”

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [October 21, 2024, 8:44am UTC](https://community.glideapps.com/t/create-online-payment-using-webhook/77224/4 "2024-10-21T08:44:46Z")

</div>

That sounds like your JSON may be malformed.  
Check the input bundle of the webhook module.  
Copy the received JSON and paste it into an online validator such as [jsonlint](https://jsonlint.com/)

---

<div class="post-metadata">

**Author:** ![Keith\_Chikumbirike](https://avatars.discourse-cdn.com/v4/letter/k/5daacb/32.png) [@Keith\_Chikumbirike](https://community.glideapps.com/u/Keith_Chikumbirike)\
**Post date:** [October 21, 2024, 9:53am UTC](https://community.glideapps.com/t/create-online-payment-using-webhook/77224/5 "2024-10-21T09:53:12Z")

</div>

Thank you so much  
I just tried it but the validator has returned result is valid

 ![Screenshot (2022)](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/e/2/e2138e9564dc60d1b59aafd08bec52b30cd18c5c.png)

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [October 21, 2024, 9:58am UTC](https://community.glideapps.com/t/create-online-payment-using-webhook/77224/6 "2024-10-21T09:58:13Z")

</div>

oh wait. I see the problem.

In your HTTP module, you are sending the JSON in the Header.  
It should be in the Body.  
Also, assuming that ~~Paynow~~ Payhere requires a JSON body, then it needs to be sent as a valid JSON payload, rather that a concatenated list of parameters (which is what you have now).

I’m pretty sure Bob Pettito has a Paynow tutorial somewhere. Check his Youtube channel.

---

<div class="post-metadata">

**Author:** ![Keith\_Chikumbirike](https://avatars.discourse-cdn.com/v4/letter/k/5daacb/32.png) [@Keith\_Chikumbirike](https://community.glideapps.com/u/Keith_Chikumbirike)\
**Post date:** [October 21, 2024, 10:11am UTC](https://community.glideapps.com/t/create-online-payment-using-webhook/77224/7 "2024-10-21T10:11:19Z")

</div>

Ok, great

Let me look for the tutorial

Thank you so much

---

<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:** [October 22, 2024, 12:33am UTC](https://community.glideapps.com/t/create-online-payment-using-webhook/77224/8 "2024-10-22T00:33:49Z")

</div>

[![](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/4/1/41d7204dff52a68260622dfec000d2616cfc0f27.jpeg "Monetize Glide Apps Part 1: The Setup") ](https://www.youtube.com/watch?v=BNZtlZkyZvs)

---

<div class="post-metadata">

**Author:** ![Keith\_Chikumbirike](https://avatars.discourse-cdn.com/v4/letter/k/5daacb/32.png) [@Keith\_Chikumbirike](https://community.glideapps.com/u/Keith_Chikumbirike)\
**Post date:** [October 22, 2024, 10:30am UTC](https://community.glideapps.com/t/create-online-payment-using-webhook/77224/9 "2024-10-22T10:30:21Z")

</div>

Thank you @ThinhDinh as well  
I’ll also take time to go through the documentation for PayNow as it seems the videos are for a different payment gateway from PayNow

---

<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:** [October 22, 2024, 12:26pm UTC](https://community.glideapps.com/t/create-online-payment-using-webhook/77224/10 "2024-10-22T12:26:15Z")

</div>

I think Darren also meant PayHere.

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [October 22, 2024, 12:33pm UTC](https://community.glideapps.com/t/create-online-payment-using-webhook/77224/11 "2024-10-22T12:33:27Z")

</div>

Yeah, sorry. Paynow is what we use for moving money around in Singapore 😂

---

<div class="post-metadata">

**Author:** ![Keith\_Chikumbirike](https://avatars.discourse-cdn.com/v4/letter/k/5daacb/32.png) [@Keith\_Chikumbirike](https://community.glideapps.com/u/Keith_Chikumbirike)\
**Post date:** [October 23, 2024, 6:51am UTC](https://community.glideapps.com/t/create-online-payment-using-webhook/77224/12 "2024-10-23T06:51:49Z")

</div>

Ook…there is a version of PayNow in my country  
Zimbabwe
