PHP code example of xente / xentepayment-php-sdk
1. Go to this page and download the library: Download xente/xentepayment-php-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/ */
xente / xentepayment-php-sdk example snippets
composer
$transactionId = '9F38AB020C394EA5BC642C25A5CB16BF-256784378515';
$transactionDetailsResponse = $xentePaymentGateway
->transactions
->getTransactionDetailsById($transactionId);
print_r($transactionDetailsResponse);
$accountId = '256784378515';
$accountDetailsResponse = xentePaymentGateway
->accounts
->getAcountDetailsById($accountId);
print_r($accountDetailsResponse);