decoderid / gojek-api
This package is abandoned and no longer maintained.
No replacement package was suggested.
Gojek Api Unofficial
4.90.2
2024-07-28 07:27 UTC
This package is auto-updated.
Last update: 2024-10-28 08:05:20 UTC
README
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