sch-group / zotto-sdk
Zotto payments api connector
v7.1
2021-09-07 08:49 UTC
Requires
- php: >=7.2
- ext-dom: *
- ext-json: *
- ext-xml: *
- guzzlehttp/guzzle: >=6.2
Requires (Dev)
- guzzlehttp/guzzle: >=6.2
- phpunit/phpunit: ~6.5.5
- piwik/ini: ^2.0
README
ZOTTO PAYMENT SYSTEM API CONNECTOR
composer require sch-group/zotto-sdk
Create transaction
$config = new ZottoConfig($config['host'], $config['merchant_key'], $config['merchant_secret']);
$client = new ZottoConnector($config);
$transaction = new Transaction(
rand(0, 10000000) . "test",
100,
'EUR',
'https://www.google.com',
'https://www.google.com',
'https://www.google.com',
'https://www.google.com',
'https://www.google.com',
rand(0, 10000000) . "test",
Transaction::CARD_REDIRECT_TYPE
);
$html = $lient->generatePaymentLink($transaction);