sch-group/zotto-sdk

Zotto payments api connector

v7.1 2021-09-07 08:49 UTC

This package is auto-updated.

Last update: 2024-04-07 14:17:02 UTC


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);