# \[NEW PLUGIN\] PayFast Payment Gateway (South Africa)

**URL:** <https://forum.bubble.io/t/new-plugin-payfast-payment-gateway-south-africa/121229>\
**Category:** Showcase\
**Created:** [November 16, 2020, 1:05pm UTC](https://forum.bubble.io/t/new-plugin-payfast-payment-gateway-south-africa/121229 "2020-11-16T13:05:49Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![pieter](https://avatars.discourse-cdn.com/v4/letter/p/82dd89/32.png) [@pieter](https://forum.bubble.io/u/pieter)\
**Post date:** [November 16, 2020, 1:05pm UTC](https://forum.bubble.io/t/new-plugin-payfast-payment-gateway-south-africa/121229/1 "2020-11-16T13:05:50Z")

</div>

Hey Bubblers!

Some exciting news! We have just published a new plugin for South African payments using PayFast. This plugin currently supports once off payments via Payfast.

**Bubble App Demo:**

> **[Bubble Editor - Payfast-demo](https://bubble.io/page?name=index&id=payfast-demo&tab=tabs-1)**
>
> Build stuff without code and launch a startup without a tech-cofounder! Bubble is a visual programing language. Instead of typing code, use a visual editor to build applications.

**Documentation:**  
[https://vltelecom.atlassian.net/wiki/spaces/PBPD/pages/882311381/Payfast+Once+Off+Payments](https://vltelecom.atlassian.net/wiki/spaces/PBPD/pages/882311381/Payfast+Once+Off+Payments)

**PayFast API Docs:**  
[https://developers.payfast.co.za/docs#quickstart](https://developers.payfast.co.za/docs#quickstart)

The documentation is quite detailed however if you need assistance, you can reach out at on this thread.

We’re currently finalising the PayFast Subscription Payments Plugin and should be available on the bubble plugin marketplace soon.

Cheers,  
Pieter

---

<div class="post-metadata">

**Author:** ![phrase9](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/phrase9/32/187478_2.png) [@phrase9](https://forum.bubble.io/u/phrase9)\
**Post date:** [November 16, 2020, 3:56pm UTC](https://forum.bubble.io/t/new-plugin-payfast-payment-gateway-south-africa/121229/2 "2020-11-16T15:56:43Z")

</div>

Hi Pieter

Nice work. Do you know if Payfast allows for mass payments in cases such as marketplaces?

---

<div class="post-metadata">

**Author:** ![leonidas.petrou4](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/leonidas.petrou4/32/26711_2.png) [@leonidas.petrou4](https://forum.bubble.io/u/leonidas.petrou4)\
**Post date:** [November 16, 2020, 4:31pm UTC](https://forum.bubble.io/t/new-plugin-payfast-payment-gateway-south-africa/121229/3 "2020-11-16T16:31:37Z")

</div>

Great work Pieter. This is great!

Look forward to a subscription addition soon!

---

<div class="post-metadata">

**Author:** ![pieter](https://avatars.discourse-cdn.com/v4/letter/p/82dd89/32.png) [@pieter](https://forum.bubble.io/u/pieter)\
**Post date:** [November 17, 2020, 6:51am UTC](https://forum.bubble.io/t/new-plugin-payfast-payment-gateway-south-africa/121229/4 "2020-11-17T06:51:10Z")

</div>

Hi @phrase9,

I doubt this is supported currently. Will check into this for future updates.

Regards,  
Pieter

---

<div class="post-metadata">

**Author:** ![pieter](https://avatars.discourse-cdn.com/v4/letter/p/82dd89/32.png) [@pieter](https://forum.bubble.io/u/pieter)\
**Post date:** [November 25, 2020, 12:49pm UTC](https://forum.bubble.io/t/new-plugin-payfast-payment-gateway-south-africa/121229/5 "2020-11-25T12:49:34Z")

</div>

Hi @leonidas.petrou4,

Good news, we decided to fast track development and have included both Once-Off and Subscription payments into a single ‘PayFast Complete’ plugin.

I have also confirmed the plugin is now available on the Plugin marketplace.

Regards,  
Pieter

---

<div class="post-metadata">

**Author:** ![seluleko6](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/seluleko6/32/70664_2.png) [@seluleko6](https://forum.bubble.io/u/seluleko6)\
**Post date:** [December 1, 2020, 11:38am UTC](https://forum.bubble.io/t/new-plugin-payfast-payment-gateway-south-africa/121229/6 "2020-12-01T11:38:35Z")

</div>

Hey Pieter,

Can you please do me/us a solid one. Please can you upload a video somewhere Like Youtube where you show us how to integrate the paygate api to the bubble api connector, since paygate and payfast are siblings.

---

<div class="post-metadata">

**Author:** ![pieter](https://avatars.discourse-cdn.com/v4/letter/p/82dd89/32.png) [@pieter](https://forum.bubble.io/u/pieter)\
**Post date:** [December 1, 2020, 6:36pm UTC](https://forum.bubble.io/t/new-plugin-payfast-payment-gateway-south-africa/121229/7 "2020-12-01T18:36:55Z")

</div>

Hi @seluleko6,

Note that this plugin prevents the need to add the API calls to the Bubble API connector. You simply add the element to the page, complete the element properties and initiate the workflow.

Regards,  
Pieter

---

<div class="post-metadata">

**Author:** ![junaid.dadan](https://avatars.discourse-cdn.com/v4/letter/j/a698b9/32.png) [@junaid.dadan](https://forum.bubble.io/u/junaid.dadan)\
**Post date:** [March 6, 2021, 11:28pm UTC](https://forum.bubble.io/t/new-plugin-payfast-payment-gateway-south-africa/121229/8 "2021-03-06T23:28:59Z")

</div>

This is great, thanks @pieter.

Would one off payments initiated using the plugin be secured with a security signature?

---

<div class="post-metadata">

**Author:** ![pieter](https://avatars.discourse-cdn.com/v4/letter/p/82dd89/32.png) [@pieter](https://forum.bubble.io/u/pieter)\
**Post date:** [March 11, 2021, 8:27am UTC](https://forum.bubble.io/t/new-plugin-payfast-payment-gateway-south-africa/121229/9 "2021-03-11T08:27:56Z")

</div>

Hi @junaid.dadan,

Sorry for the late reply. Yes, it is secured using the security signature as per the PayFast API documentation.

Should there be a signature mismatch, the payment will not be initiated.

Regards,  
Pieter

---

<div class="post-metadata">

**Author:** ![gregcraig010](https://avatars.discourse-cdn.com/v4/letter/g/e9a140/32.png) [@gregcraig010](https://forum.bubble.io/u/gregcraig010)\
**Post date:** [April 8, 2021, 7:27am UTC](https://forum.bubble.io/t/new-plugin-payfast-payment-gateway-south-africa/121229/10 "2021-04-08T07:27:52Z")

</div>

Hi @pieter

How would this plugin work with a subscription service as well as in app purchases.

i.e. on user(seller) sign up they are charged subscription to have a profile and then buyers sign up free but purchase from sellers in app?

regards  
Greg

---

<div class="post-metadata">

**Author:** ![pieter](https://avatars.discourse-cdn.com/v4/letter/p/82dd89/32.png) [@pieter](https://forum.bubble.io/u/pieter)\
**Post date:** [April 8, 2021, 8:02am UTC](https://forum.bubble.io/t/new-plugin-payfast-payment-gateway-south-africa/121229/11 "2021-04-08T08:02:17Z")

</div>

Hi @gregcraig010,

Sounds like you are looking to implement something similar to an escrow app. The plugin currently supports linking only one merchant account (your own).

Users would then be able to subscribe using the plugin or make a once off purchase to a single merchant account.

In this case you would receive the funds in your PayFast merchant account and build in functionality outside the plugin to have these funds transferred to the sellers.

Regards,  
Pieter

---

<div class="post-metadata">

**Author:** ![gregcraig010](https://avatars.discourse-cdn.com/v4/letter/g/e9a140/32.png) [@gregcraig010](https://forum.bubble.io/u/gregcraig010)\
**Post date:** [April 8, 2021, 8:35am UTC](https://forum.bubble.io/t/new-plugin-payfast-payment-gateway-south-africa/121229/12 "2021-04-08T08:35:20Z")

</div>

Hi Pieter

I will only be using my merchant account with payfast, However I’d like to have the subscription at sign up for the sellers profile/sign up and the buyer will purchase via the marketplace those funds will go to my merchant account and setup on back ends to request payout to sellers.

I am also have an error of **signature:** Generated signature does not match submitted signature.

so do I put the paygate plugin on all pages that require payments, IE on sign up and again when purchasing from sellers (paygate A , Paygate B etc )

---

<div class="post-metadata">

**Author:** ![gregcraig010](https://avatars.discourse-cdn.com/v4/letter/g/e9a140/32.png) [@gregcraig010](https://forum.bubble.io/u/gregcraig010)\
**Post date:** [April 8, 2021, 8:35am UTC](https://forum.bubble.io/t/new-plugin-payfast-payment-gateway-south-africa/121229/13 "2021-04-08T08:35:53Z")

</div>

Sorry Payfast

---

<div class="post-metadata">

**Author:** ![pieter](https://avatars.discourse-cdn.com/v4/letter/p/82dd89/32.png) [@pieter](https://forum.bubble.io/u/pieter)\
**Post date:** [April 8, 2021, 8:55am UTC](https://forum.bubble.io/t/new-plugin-payfast-payment-gateway-south-africa/121229/14 "2021-04-08T08:55:53Z")

</div>

Ok, that’s great.

So answers to your questions:

> do I put the paygate plugin on all pages that require payments, IE on sign up and again when purchasing from sellers (paygate A , Paygate B etc )

Yes, you would need to add the Payfast element to every page where the payment or subscription will be initialized.

> I am also have an error of **signature:** Generated signature does not match submitted signature.

This is usually caused by the item\_name or item\_description being too long. Please try reducing this to a shorter string (You can test if it is this by changing this value to 1234 for example)

Cheers,  
Pieter

---

<div class="post-metadata">

**Author:** ![gregcraig010](https://avatars.discourse-cdn.com/v4/letter/g/e9a140/32.png) [@gregcraig010](https://forum.bubble.io/u/gregcraig010)\
**Post date:** [April 8, 2021, 9:07am UTC](https://forum.bubble.io/t/new-plugin-payfast-payment-gateway-south-africa/121229/15 "2021-04-08T09:07:01Z")

</div>

Thank you, I’ll give it a bash

---

<div class="post-metadata">

**Author:** ![gregcraig010](https://avatars.discourse-cdn.com/v4/letter/g/e9a140/32.png) [@gregcraig010](https://forum.bubble.io/u/gregcraig010)\
**Post date:** [April 14, 2021, 9:15am UTC](https://forum.bubble.io/t/new-plugin-payfast-payment-gateway-south-africa/121229/16 "2021-04-14T09:15:25Z")

</div>

Hi Pieter

IF one had a page with listed videos how would I have the video only playable once payment has been received? Playable to the user who has paid and to send that video to the user who has paid profile. If that makes sense?

Payfast works great

Cheers  
Greg

---

<div class="post-metadata">

**Author:** ![pieter](https://avatars.discourse-cdn.com/v4/letter/p/82dd89/32.png) [@pieter](https://forum.bubble.io/u/pieter)\
**Post date:** [April 14, 2021, 9:47am UTC](https://forum.bubble.io/t/new-plugin-payfast-payment-gateway-south-africa/121229/17 "2021-04-14T09:47:33Z")

</div>

Hi Greg,

I have sent you a DM.

Regards,  
Pieter

---

<div class="post-metadata">

**Author:** ![junaid.dadan](https://avatars.discourse-cdn.com/v4/letter/j/a698b9/32.png) [@junaid.dadan](https://forum.bubble.io/u/junaid.dadan)\
**Post date:** [April 18, 2021, 5:35pm UTC](https://forum.bubble.io/t/new-plugin-payfast-payment-gateway-south-africa/121229/18 "2021-04-18T17:35:55Z")

</div>

Hi @pieter thanks for the plugin. It works well most of the time but now and then this error shows up when a payment is being initiated. Please could you advise?

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/7/2/72e3863e4b2455b90d036edd2feab42d9ff1caa2.jpeg)

---

<div class="post-metadata">

**Author:** ![pieter](https://avatars.discourse-cdn.com/v4/letter/p/82dd89/32.png) [@pieter](https://forum.bubble.io/u/pieter)\
**Post date:** [April 19, 2021, 7:01am UTC](https://forum.bubble.io/t/new-plugin-payfast-payment-gateway-south-africa/121229/19 "2021-04-19T07:01:09Z")

</div>

Hi @junaid.dadan,

Thank you for reporting this. Would you mind providing the steps to reproduce this as well as entries from the Bubble app logs when this error occurs?

This can also happen when there are searches in your PayFast element properties like ‘Do a search for…’. If the search is not completed before the PayFast payment is initiated, the post function will not be complete. I would recommend not making use of ‘Do a search for…’ in the property fields and instead reference these values as states or similar.

Additional capacity could potentially also resolve this as it is happening intermittently.

Thank you,  
Pieter

---

<div class="post-metadata">

**Author:** ![junaid.dadan](https://avatars.discourse-cdn.com/v4/letter/j/a698b9/32.png) [@junaid.dadan](https://forum.bubble.io/u/junaid.dadan)\
**Post date:** [April 19, 2021, 12:20pm UTC](https://forum.bubble.io/t/new-plugin-payfast-payment-gateway-south-africa/121229/20 "2021-04-19T12:20:00Z")

</div>

Thanks @pieter, I’ll DM you with the details

[Next page](https://forum.bubble.io/t/new-plugin-payfast-payment-gateway-south-africa/121229.md?page=2)
