PayU MEA PHP SDK
Welcome to PayU PHP SDK. This repository contains PayU's PHP SDK and samples for both Enterprise and Redirect SOAP API., (*1)
Please Note
The Payment Card Industry (PCI) Council has mandated that early versions of TLS be retired from service. All organizations that handle credit card information are required to comply with this standard. As part of this obligation, PayU has updated its services to require TLS 1.2 for all HTTPS connections. At this time, PayU will also require HTTP/1.1 for all connections., (*2)
You can sign up for a PayU account at https://payu.co.za., (*3)
Requirements
v1.* PHP 5.4 - PHP 7.4, (*4)
v2.* PHP8 and above, (*5)
Composer
You can install the bindings via Composer. Run the following command:, (*6)
composer require payumea/payu-sdk-php
To use the bindings, use Composer's autoload:, (*7)
require_once('vendor/autoload.php');
Dependencies
The bindings require the following extension in order to work properly:, (*8)
If you use Composer, these dependencies should be handled automatically. If you install manually, you'll want to make sure that these extensions are available., (*9)
Documentation
Please see the sample/doc
directory for information on how to use this library
and the samples
directory for examples on using this library. You should
be able to run all the examples by running php samples/index.php
., (*10)
SDK Documentation
Everything from SDK Wiki, to Sample Codes, to Releases. Here are few quick links to get you there faster., (*11)
Please see for up-to-date documentation.
* Samples
* [ PayU Developer Docs] (http://help.payu.co.za/display/developers/), (*12)
Development
Install dependencies:, (*13)
``` bash
composer install, (*14)
## Tests
Install dependencies as mentioned above (which will resolve [PHPUnit](http://packagist.org/packages/phpunit/phpunit)), then you can run the test suite:
```bash
./vendor/bin/phpunit
Or to run an individual test file:, (*15)
./vendor/bin/phpunit tests/PayU/Test/Api/AmounTest.php