jlorente / payu-php-sdk
A PHP package to access the PayU API by a comprehensive way.
Installs: 4 457
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- php: >=5.2.1
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- ext-xml: *
This package is auto-updated.
Last update: 2024-10-25 18:10:30 UTC
README
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.
Installation
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-sdk
or add
... "require": { "jlorente/payu-php-sdk": "*" }
to the require
section of your composer.json
file.
Configuration
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;
License
Copyright © 2020 José Lorente Martín jose.lorente.martin@gmail.com.
Licensed under the BSD 3-Clause License. See LICENSE.txt for details.