Rashid.Developer

plugin

Pesapal API v3 Integration

PHP examples for Pesapal API 3.0: auth, IPN registration and order requests

PHPPHP integrationupdated May 3, 2024

requires PHP, a Pesapal merchant account

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

  1. Click download .zip above and unzip it.
  2. Add your Pesapal consumer key and secret.
  3. Run the scripts in order: access token, register IPN, then submit an order.

Test with Pesapal’s sandbox before going live.

the newsletter

Stay in the loop

A short monthly email on WordPress, the web in Uganda and what I’m learning from real client projects.

  • Practical WordPress & WooCommerce tips
  • Lessons and fixes from real projects
  • New plugins, talks and events first

Get it in your inbox

Once a month. No spam, unsubscribe any time. Privacy