Welcome to PayU PHP SDK. This repository contains PayU's PHP SDK and samples for both Enterprise and Redirect SOAP API.
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.
You can sign up for a PayU account at https://payu.co.za.
v1.* PHP 5.4 - PHP 7.4
v2.* PHP8 and above
You can install the bindings via Composer. Run the following command:
composer require payumea/payu-sdk-php
To use the bindings, use Composer's autoload:
require_once('vendor/autoload.php');
The bindings require the following extension in order to work properly:
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.
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
.
Everything from SDK Wiki, to Sample Codes, to Releases. Here are few quick links to get you there faster.
Please see for up-to-date documentation.
- Samples
- [ PayU Developer Docs] (http://help.payu.co.za/display/developers/)
Install dependencies:
composer install
Install dependencies as mentioned above (which will resolve PHPUnit), then you can run the test suite:
./vendor/bin/phpunit
Or to run an individual test file:
./vendor/bin/phpunit tests/PayU/Test/Api/AmounTest.php