maldopay / maldopay-php-sdk
MaldoPay PHP SDK
1.1.1
2022-04-12 10:02 UTC
Requires
- php: >=5.4.8
README
MaldoPay PHP SDK is is PHP library which simplifies the integration of every MaldoPay Servers.
Requirements
PHP 5.4.8 or later.
Installation
Install via composer
composer require maldopay/maldopay-php-sdk
Manual Installation
Download our last version from here. Then use Loader.php
file:
require_once './SDK/Loader.php';;
Example Usage
require_once './SDK/Loader.php'; $authRequest = new \MaldoPay\SDK\AuthRequest( 81433, 15, "Ivan", "Ivanov", "127.0.0.1", 1235, 345435345322, "test@abv.bg", "Etropole", "1980-01-01", 100, "Test" ); $Autohrization = new \MaldoPay\SDK\Authorization($authRequest); $cepBankService = new \MaldoPay\SDK\Services\Cepbank(); $cepBankService->setServiceData1("2104144157120047"); $cepBankService->setServiceData2("5"); $transactionRequest = new \MaldoPay\SDK\TransactionRequest( $Autohrization, $cepBankService, 12980, 'cep_bank_live_111511', 50, "test", "test.bg", "test.bg", "test.bg", "test.bg" ); $transaction = new \MaldoPay\SDK\Transaction($transactionRequest)->Create();
Documentation
More documentation is available at https://www.maldopay.com/documentation.