PHP code example of ustadev / payze
1. Go to this page and download the library: Download ustadev/payze 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/ */
ustadev / payze example snippets
use ustadev\payments\PayzeApi;
piSecret";
$api = new PayzeApi($apiKey, $apiSecret);
$list = $api->getPaymentList();
//$create = $api->create(1000);
// print_r($create);
foreach ($list['data']['value'] as $item) {
echo "<tr>";
echo "<td>" . $item['createdDate'] . "</td>";
echo "<td>" . $item['requesterId'] . "</td>";
echo "<td>" . $item['transactionId'] . "</td>";
echo "<td>" . $item['type'] . "</td>";
echo "<td>" . $item['source'] . "</td>";
echo "<td>" . $item['amount'] . "</td>";
echo "<td>" . $item['currency'] . "</td>";
echo "<td>" . $item['network'] . "</td>";
echo "<td>" . $item['cardPayment']['cardMask'] . "</td>";
echo "<td>" . $item['cardPayment']['token'] . "</td>";
echo "<td>" . $item['status'] . "</td>";
echo "<td>" . $item['paymentUrl'] . "</td>";
echo "</tr>";
}