A PHP package to access the PayU API by a comprehensive way.
This is an enhanced version of the original PayU PHP SDK developed by PayU that adds installation through composer, class namespacing and class autoloading instead of the old package full SDK require on initialization.
The preferred way to install this extension is through composer.
With Composer installed, you can then install the extension using the following commands:
$ php composer.phar require jlorente/payu-php-sdkor add
...
"require": {
"jlorente/payu-php-sdk": "*"
}to the require section of your composer.json file.
You have to set the configuration on runtime by using the static variables of the PayU class.
PayU::$apiKey = "xxxxxxxxxxxx";
PayU::$apiLogin = "xxxxxxxxxxxx";
PayU::$merchantId = "1";
PayU::$language = SupportedLanguages::ES;
PayU::$isTest = false;Copyright © 2020 José Lorente Martín [email protected].
Licensed under the BSD 3-Clause License. See LICENSE.txt for details.