1. Go to this page and download the library: Download asciisd/gate-to-pay 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/ */
asciisd / gate-to-pay example snippets
use ASCIISD\GateToPay\Facades\GateToPay;
$cards = GateToPay::getCustomerCards($customerId);
use ASCIISD\GateToPay\Facades\GateToPayCMS;
$customerId = GateToPayCMS::generateCustomerId();
use ASCIISD\GateToPay\Facades\GateToPay;
// These methods delegate to the CMSApiService internally
$response = GateToPay::createNewProfile([/* ... */]);
$customerId = GateToPay::generateCustomerId();