hoavq/gmo-pg-bank-transfer

此软件包最新版本(v1.0.8)没有提供许可证信息。

Global Money Transfer - 银行转账

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

This package is auto-updated.

Last update: 2024-09-29 05:02:17 UTC


README

安装

使用composer安装此软件包。建议仅在开发中使用此软件包

composer require hoavq/gmo-pg-bank-transfer

如果你不使用自动发现,请将ServiceProvider添加到config/app.php中的providers数组中

\HoaVQ\GmoPG\GmoServiceProvider::class,

在app.php中将以下内容添加到你的外观中

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

发布配置和语言资源

使用发布命令将软件包配置复制到本地配置中

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

运行上述命令后,将在以下位置出现2个文件

config/gmo.php

resource/{lang}/gmo.php

接下来,在config/gmo.php文件中输入shop_idshop_password

config/gmo.php文件看起来像这样

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',
    ],
];

用法

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

accountSearchdepositSearch函数是gmo.urls数组中的键(config('gmo.urls'))。