hoavq/gmo-pg-bank-transfer

There is no license information available for the latest version (v1.0.8) of this package.

GMO Payment Geteway - Bank transfer

v1.0.8 2018-11-30 08:31 UTC

This package is auto-updated.

Last update: 2024-10-29 05:16:43 UTC


README

Installation

Require this package with composer. It is recommended to only require the package for development

composer require hoavq/gmo-pg-bank-transfer

If you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php

\HoaVQ\GmoPG\GmoServiceProvider::class,

add this to your facades in app.php:

'GMO' => \HoaVQ\GmoPG\GmoFacade::class,

Publish config and lang resource

Copy the package config to your local config with the publish command:

php artisan vendor:publish --provider="HoaVQ\GmoPG\GmoServiceProvider"

After running the above command will appear 2 files at:

config/gmo.php

and

resource/{lang}/gmo.php

Next, enter shop_id and shop_password in the config/gmo.php file.

The config/gmo.php file looks like this:

return [
    'host' => 'https://test-remittance.gmopg.jp',
    'shop_id' => 'rshopxxxxxxxx',
    'shop_password' => 'xxxxxxxx',
    'urls' => [
        'AccountRegistration' => '/api/AccountRegistration.idPass',
        'AccountSearch' => '/api/AccountSearch.idPass',
        'DepositRegistration' => '/api/DepositRegistration.idPass',
        'DepositSearch' => '/api/DepositSearch.idPass',
    ],
];

Usage

$result = \GMO::accountSearch([
    'Bank_ID' => '99992',
]);
$result = \GMO::depositSearch([
    'Deposit_ID' => 'ABC8888',
]);

The accountSearch, depositSearch functions are keys in the gmo.urls array (config('gmo.urls').