PHP code example of allsecure-pay / php-exchange
1. Go to this page and download the library: Download allsecure-pay/php-exchange 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/ */
allsecure-pay / php-exchange example snippets
use Exchange\Client\Client;
use Exchange\Client\Data\Customer;
use Exchange\Client\Transaction\Debit;
use Exchange\Client\Transaction\Result;
// Include the autoloader (if not already done via Composer autoloader)
ated_connector_shared_secret";
$client = new Client("username", "password", "apiKey", "sharedSecret");
### Process a debit transaction
Once you instantiated a [client with credentials](#setting-up-credentials),
you can use the instance to make transaction API calls.