-
Notifications
You must be signed in to change notification settings - Fork 40
/
Example.php
34 lines (19 loc) · 841 Bytes
/
Example.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
require 'vendor/autoload.php';
use Namdevel\GojekPay;
$gopay = new GojekPay();
$access_token = 'eyJhbGciOiJSUzI1NiIsImtpZCI6IiJ9.....';
$gopay = new GojekPay($access_token);
echo $gopay->getTransactionHistory();
echo $gopay->getBalance();
echo $gopay->getProfile();
echo $gopay->goClubMembership();
echo $gopay->paylaterProfile();
echo $gopay->kycStatus();
echo $gopay->isGojek('<+628xxxxxxxxxx>'); // include +62
echo $gopay->getQrid('+628xxxxxxxxxx'); // include +62
echo $gopay->getBankList(); // get bank code
echo $gopay->isBank('<bankcode: bri/bca/mandiri/btpn>', '<nomor_rekening>');
echo $gopay->transferGopay('<+628xxxxxxxxxx>', 10000, '<pin_gopay>'); // include +62
echo $gopay->transferBank('<bri/bca/mandiri/btpn>', '<nomor_rekening>', 10000, '<pin_gopay>');
echo $gopay->transferBankDetail('<request_id>');