seasofthpyosithu / gmo-payment
gmo payment library laravel
Installs: 98
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/seasofthpyosithu/gmo-payment
Requires
- guzzlehttp/guzzle: ^6.3@dev
This package is auto-updated.
Last update: 2025-10-29 00:07:41 UTC
README
Install using composer:
$ composer require seasofthpyosithu/gmo-payment
If you are using a Laravel version less than 5.5 you need to add the provider on config/app.php:
'providers' => [ // ... Seasofthpyosithu\GmoPayment\GmoPaymentServiceProvider::class, ],
If you want you can use the facade. Add the reference in config/app.php to your aliases array.
'RemittanceApi' => Seasofthpyosithu\GmoPayment\Facades\RemittanceApi::class
Configuration
Gmo Payment requires connection configuration. To get started, you'll need to publish all vendor assets:
$ php artisan vendor:publish --provider="Seasofthpyosithu\GmoPayment\GmoPaymentServiceProvider"
Usage
Create AccountUpdate AccountDelete AccountSearch AccountCreate DepositCancel DepositSearch DepositCreate Mail DepositCancel Mail DepositSearch Mail DepositCheck Balance
use Seasofthpyosithu\GmoPayment\Facades\RemittanceApi;
Create bank account
RemittanceApi::accountRegistration( 'bank00000', // bank id '0001', // bank code '813', // branch code AccountType::NORMAL, // account type 'An Yutzy', // account name '0012345', // account number AccountMethod::CREATE, // method );
Update bank account
RemittanceApi::accountRegistration( 'bank00000', // bank id '0001', // bank code '813', // branch code AccountType::NORMAL, // account type 'An Yutzy', // account name '0012345', // account number AccountMethod::UPDATE, // method );
Delete bank account
RemittanceApi::deleteAccount( 'bank00000', // bank id );
Search bank account
RemittanceApi::accountSearch( 'bank00000', // bank id );
Create deposit
RemittanceApi::depositRegistration( 'dep00000', // deposit id DepositMethod::CREATE // method CREATE or CANCEL 'bank00000', // bank id 1000 // amount );
Cancel deposit
RemittanceApi::depositRegistration( 'dep00000', // deposit id DepositMethod::CANCEL // method CREATE or CANCEL );
Search deposit
RemittanceApi::depositSearch( 'dep00000', // deposit id );
Create mail deposit
RemittanceApi::mailDepositRegistration( 'dep00000', // deposit id DepositMethod::CREATE // method CREATE or CANCEL 'anyutzy@demo.com', // mail address 'anyutzy@demo.com' // shop mail address 'An Yutzy', // account name '20170503' // Expire 1000 // amount );
Cancel mail deposit
RemittanceApi::mailDepositRegistration( 'dep00000', // deposit id DepositMethod::CANCEL // method CREATE or CANCEL );
Search mail deposit
RemittanceApi::mailDepositSearch( 'dep00000', // deposit id );
Check balance
RemittanceApi::balanceSearch();