PHP code example of badlamer / egopay-client
1. Go to this page and download the library: Download badlamer/egopay-client 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/ */
badlamer / egopay-client example snippets
$client = new Egopay\Egopay($youLogin, $youPass, $youShopId, $isSandbox);
// $order imlipemts Egopay\OrderInterface
// $customer imlipemts Egopay\CustomerInterface
// Геристрируем заказ
$client->register($order, $customer, $urlOk, $urlFail, $currency, $locale);
// Получаем статус
$client->getStatus($order);
//Всё