Skip to content

mahongran/hmpay-agent

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

河马付

河马付代理商 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);

参考

License

MIT

About

河马付代理商 SDK

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%