AppVersion: 4.74.3
Gimme Buff to Get More Power: https://trakteer.id/decoderid
- Login
- Re-Login (No Need OTP)
- Resend OTP
- GoPay Pin 2FA
- Profile
- Balance
- Transaction List
- Transaction Detail
- Bank List
- Validate Bank
- Validate P2P
- Transfer Bank
- Transfer Gopay (P2P Sesama Akun)
- Validate QRCode
- Pay Static QR
- Pay Dynamic QR
- Update PIN
- Logout
$ composer require decoderid/gojek-api
<?php
require_once 'vendor/autoload.php';
use Decoderid/GojekApi;
$phone = '[PHONE]';
$pin = '[PIN]';
$gojek = new GojekApi();
$login = $gojek->login($phone, $pin);
/**
* VERIFY OTP
*/
$verifyOtp = $gojek->verifyOtp('[OTP]', $login->data->otp_token);
if ($verifyOtp->access_token) {
print_r($verifyOtp);
}
if ($verifyOtp->success) {
print_r($verifyOtp);
}
/**
* IF PIN AUTHENTICATION AFTER OTP
*/
if ($verifyOtp->errors[0]->code === 'mfa:customer_send_challenge:challenge_required') {
$challengeToken = $verifyOtp->errors[0]->details->challenge_token;
$challengeId = $verifyOtp->errors[0]->details->challenges[0]->gopay_challenge_id;
$verifyMFA = $gojek->verifyMFA($challengeId, $pin);
if ($verifyMFA->success) {
$verifyMFAToken = $gojek->verifyMFAToken($challengeToken, $verifyMFA->data->token);
print_r($verifyMFAToken);
}
}
?>
https://php-demo.decoder.id/app/gojek/
Email: im@decoder.id
Telegram: @decoderid