Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Sep 29, 2024. It is now read-only.

decoderid/gojek-api-php-native

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

28 Commits

Repository files navigation

MIT License Contributors Forks Issues

Hits

Gojek Api Unofficial (PHP NATIVE)

AppVersion: 4.74.3

Gimme Buff to Get More Power: https://trakteer.id/decoderid

Api List

  • 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

$ composer require decoderid/gojek-api

Example: Login

<?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);
 }
}
?>

Demo

https://php-demo.decoder.id/app/gojek/

Contact

Email: im@decoder.id

Telegram: @decoderid

Another Project

  1. Dana Unofficial Api
  2. Cek Pajak Kendaraan

AltStyle によって変換されたページ (->オリジナル) /