sch-group / zotto-sdk
Zotto payments api connector
Installs: 482
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/sch-group/zotto-sdk
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);