Skip to content

PayUMEA/payu-mea-sdk-php

Repository files navigation

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.

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.

You can sign up for a PayU account at https://payu.co.za.

Requirements

PHP 5.4 and later.

Composer

You can install the bindings via Composer. Run the following command:

composer require netcraft-devops/payu-sdk-php

To use the bindings, use Composer's autoload:

require_once('vendor/autoload.php');

Dependencies

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.

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.

SDK Documentation

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.

Development

Install dependencies:

composer install

Tests

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