PHP code example of financialplugins / omnipay-trongrid

1. Go to this page and download the library: Download financialplugins/omnipay-trongrid 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/ */

    

financialplugins / omnipay-trongrid example snippets


$response = $gateway->fetchBalance(['address' => '4158b637e78d6f2069a50976c4e3719a1d8bea7cea'])->send();

if ($response->isSuccessful()) {
    $data = $response->getData();
} else {
    $errorMessage = $response->getMessage();
}

$response = $gateway->fetchTransaction(['transaction_id' => '109a0ea9b4c50f15f6a73ee823dabafe020471b6fcb4340059252bd19fd6320f'])->send();

if ($response->isSuccessful()) {
    $data = $response->getData();
} else {
    $errorMessage = $response->getMessage();
}