PHP code example of gyugie / gopayid

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

    

gyugie / gopayid example snippets


composer 


use Gyugie\GopayID;

$gopay = new GopayID();

$loginToken = $gopay->LoginNumberPhone('<mobilePhone>')->getResult();

$authToken = $gopay->getAuthToken('<loginToken>', '<OTP>')->getResult();

$gopay = new GopayID('<access_token>');
$result = $gopay->getProfile()->getResult();

$gopay = new GopayID('<access_token>');
$result = $gopay->transferGopayID('<phoneNumber>', '<amount>', '<pin>')->getResult();

$gopay = new GopayID('<access_token>');
$result = $gopay->transferBank('<bankCode>', '<bankNumber>', '<amount>', '<pin>')->getResult();

$gopay = new GopayID('<access_token>');
$result = $gopay->getBankList()->getResult();

$gopay = new GopayID('<access_token>');
$result = $gopay->getHistoryTransaction()->getResult();

$gopay = new GopayID('<access_token>');
$result = $gopay->getBalance()->getResult();

$gopay = new GopayID('<access_token>');
$result = $gopay->getQrid('<phoneNumber>')->getResult();

$gopay = new GopayID('<access_token>');
$result = $gopay->getBankAccountName('<bankCode>', '<bankNumber>')->getResult();