1. Go to this page and download the library: Download andisiahaan/tripay-php 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/ */
andisiahaan / tripay-php example snippets
use AndiSiahaan\Tripay\Client;
$client = new Client(getenv('TRIPAY_API_KEY'), getenv('TRIPAY_PRIVATE_KEY'), false, getenv('TRIPAY_MERCHANT_CODE'));
// Example: list payment channels
$channels = $client->paymentChannels()->list();
print_r($channels);