plugin
Pesapal API v3 Integration
PHP examples for Pesapal API 3.0: auth, IPN registration and order requests
A set of plain PHP scripts showing how to take payments with Pesapal API 3.0. It’s not a WordPress plugin, but a working reference you can drop into your own site or app.
What’s included
- Getting an access token
- Registering an IPN (instant payment notification) URL, and listing registered IPNs
- Submitting an order request and redirecting to Pesapal to pay
- A callback and response page to handle the result
Use it
- Click download .zip above and unzip it.
- Add your Pesapal consumer key and secret.
- Run the scripts in order: access token, register IPN, then submit an order.
Test with Pesapal’s sandbox before going live.