PHP code example of itelmenko / ecommpay-php5-sdk
1. Go to this page and download the library: Download itelmenko/ecommpay-php5-sdk library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
itelmenko / ecommpay-php5-sdk example snippets
$gate = new ecommpay\Gate('secret');
$payment = new ecommpay\Payment(100);
$payment->setPaymentAmount(1000)->setPaymentCurrency('RUB');
$url = $gate->getPurchasePaymentPageUrl($payment);
$gate = new ecommpay\Gate('secret');
$callback = $gate->handleCallback($data);