gyugie / gopayid
Un-Official GopayID API Wrapper
1.0.0
2020-11-11 06:24 UTC
Requires
- php: ^7.4
Requires (Dev)
- phpunit/phpunit: ^7
This package is auto-updated.
Last update: 2025-05-29 01:54:43 UTC
README
Repository Berikut Ini Merupakan Porting Dari GOJEK dan (https://github.com/namdevel/gopay-api) Untuk PHP
Compliant with the Nov 10, 2020 Gojek API update.
Fitur Akun Pengguna GOPAY
- LoginNumberPhone
- getAccessToken
- transferGopayID
- transferBank
- getHistory
- getProfile
- getAccountBalance
- getQrid
- getBankList
- getBankAccountName
Dokumentasi
Langkah Untuk Menjalankan GopayID API
Ambil Paket Pada Composer
composer require gyugie/gopayid
Jika Di Jalankan Dengan Native
require 'vendor/autoload.php'; use Gyugie\GopayID; $gopay = new GopayID();
Fitur Akun Pengguna GopayID
Login Dengan Nomor Handphone
$loginToken = $gopay->LoginNumberPhone('<mobilePhone>')->getResult();
Login Pada GopayID Untuk Mendapatkan Access Token
$authToken = $gopay->getAuthToken('<loginToken>', '<OTP>')->getResult();
Menampilkan Informasi Akun Pengguna
$gopay = new GopayID('<access_token>'); $result = $gopay->getProfile()->getResult();
Transfer Ke Sesama GOPAY
$gopay = new GopayID('<access_token>'); $result = $gopay->transferGopayID('<phoneNumber>', '<amount>', '<pin>')->getResult();
Transfer Melalui Bank
$gopay = new GopayID('<access_token>'); $result = $gopay->transferBank('<bankCode>', '<bankNumber>', '<amount>', '<pin>')->getResult();
Mendapatkan List Bank
$gopay = new GopayID('<access_token>'); $result = $gopay->getBankList()->getResult();
Mendapatkan History Transaksi
$gopay = new GopayID('<access_token>'); $result = $gopay->getHistoryTransaction()->getResult();
Menampilkan Profile User
$gopay = new GopayID('<access_token>'); $result = $gopay->getBalance()->getResult();
Mendapatkan Qrid
$gopay = new GopayID('<access_token>'); $result = $gopay->getQrid('<phoneNumber>')->getResult();
Mendapatkan Nama Bank Account
$gopay = new GopayID('<access_token>'); $result = $gopay->getBankAccountName('<bankCode>', '<bankNumber>')->getResult();
Contributing
All kinds of contributions are welcome - code, tests, documentation, bug reports, new features, etc...
- Send feedbacks.
- Submit bug reports.
- Write/Edit the documents.
- Fix bugs or add new features.