It has been a while since I worked on payment plugins but it seems like I am giving into the pressure. Find herein some code of some extensions that I have had for a while but for some reason I have not published.
These are rough working drafts of a donation extension for the Pesapal payment gateway. They do need some work but technically, they work. So for anybody who needs simple extension that will accept Pesapal payments – and even handle their IPN notices (yes – the extension will provide you with the URL for the IPN setting in Pesapal)
Find below the download links to the extensions
For some basic details into what the extensions do / how they work…read on
Pesapal Donate presents a simple form on the front end for the user to input their Name, Email, Phone Number and donation amount (with appropriate validations) – after which, the well known Pesapal iFrame will be shown. After appropriately filling said iFrame, the system will return to the first form with appropriate messaging.
The Merchant Key, Merchant Secret, Transaction description and operation mode (test or live) are part of the Component Options in the back end of the site
To display the front end form, create a menu item called of type DonateForm from the PesaPal Donate Options – ignore the other two options available as you will not need them (will remove them in later update to the extension as this one is still a bit rough on the edges but it works!)
The transaction details are stored in the site db and can be viewed from the back end of the website by going to Components->Pespal Donate. The top of the transactions table also includes what should be set up as the IPN URL for your pesapal account – should you want this feature.
Should you want more features in the plugin, please feel free to suggest them in the comments or contact me here and I promise to get to them over time.Share