河马付代理商 SDK
$ composer require mahongran/hmpay-agent -vvv
在使用本扩展前,你需要先联系杉德支付开通河马付代理商。
use Stone009\HmpayAgent\Agent;
$config = [
'app_id' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxx',
'private_key' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxx',
...
];
$agent = new Agent($config);
//代理商进件商户
$params = [
'merchant_type' => 'GENERAL_MERCHANT',
...
];
$response = $agent->merchant->postData('merchant.create', $params);
MIT