PHP示例使用说明
该示例适用于PHP编程语言,可以调用所有OpenAPI接口。示例封装了执行集成的过程,包括添加和验证调用支付网关API的签名。这只是一个例子,我们不保证代码适用于任何编程环境。它只是演示如何调用我们的API。您可以参考此代码来编写自己的程序。
使用条件
适用于PHP 5.5以上的开发环境。
下载地址
使用步骤
1. 添加依赖项,使用“Composer”下载以下包
{
"require": {
"ext-json": "*",
"ext-openssl": "*",
"ext-curl": "*"
}
}
'ext-curlL' is used for packets sent over the HTTP network, 'ext-json' parses and processes JSON packets, and 'ext-openssl' is used for RSA signature calculation packets.