Home >php教程 >PHP源码 >第三方移动支付整合库

第三方移动支付整合库

PHP中文网
PHP中文网Original
2016-05-23 13:07:521156browse

跳至

//发起支付
$res = HuNanZai\HelpPay\Api::pay(HuNanZai\HelpPay\Api::SERVICE_TYPE_ALIPAY, 'xxxxx', 100);
//查询交易
$res = HuNanZai\HelpPay\Api::search(HuNanZai\HelpPay\Api::SERVICE_TYPE_ALIPAY, 'xxxxx', 'xxxx');
//关闭交易
$res = HuNanZai\HelpPay\Api::close(HuNanZai\HelpPay\Api::SERVICE_TYPE_ALIPAY, 'xxxxx', 'xxxxx');
//交易退款
$res = HuNanZai\HelpPay\Api::refund(HuNanZai\HelpPay\Api::SERVICE_TYPE_ALIPAY, 'xxxxx', 'xxxxx', 1);

                   

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn