中金 中金支付PHP SDK

账服通

$config = [ 'http' => [ 'timeout' => 30.0, 'base_uri' => 'https://ctest.cpcn.com.cn/acswk/interfaceII.htm', ], 'log' => [ 'name' => 'cpcn', 'path' => __DIR__ . '/cpcn.log', 'level' => 'debug', ], 'ptnCode' => 'ZWYA2019', 'bkCode' => 'ZBANK001', 'keyContent' => 'keyContent', 'certContent' => 'certContent', //'keystoreFilename' =>__DIR__ . '/../../config/ptntest.pfx', //'certificateFilename' => __DIR__ . '/../../config/pfdstest.cer', ]; $trdClient = Factory::acs($config); $trdT1001Request = new TrdT1002Request(); /** * @var TrdT1002Response $response */ $response = $trdClient->execute($trdT1001Request, new TrdT1002Response()); $this->assertEquals(ResponseCode::SUCCESS, $response->getMsghdRspcode(

壹企付

$config = [ 'http' => [ 'timeout' => 30.0, 'base_uri' => 'https://ctest.cpcn.com.cn/acswk/interfaceII.htm', ], 'log' => [ 'name' => 'cpcn', 'path' => __DIR__ . '/cpcn.log', 'level' => 'debug', ], 'signerType' => 1,//1国密证书,2国际证书, 'cfcaLogFilePath' => '/resource/cfcalog.conf' 'institutionId' => '11111', //'keyContent' => 'keyContent', 'certContent' => 'certContent', //'keystorePassword' => 'keystorePassword', //'keystoreFilename' =>__DIR__ . '/../../config/ptntest.pfx', ]; $trdClient = Factory::ep($config); $request = new Tx5011Request(); $request->setHasSubsequentSplit(1); /** * @var Tx5011Response $response */ $response = $trdClient->execute($request, new Tx5011Response()); $this->assertEquals(ResponseCode::SUCCESS, $response->getMsghdRspcode(

版权声明:

1、该文章(资料)来源于互联网公开信息,我方只是对该内容做点评,所分享的下载地址为原作者公开地址。
2、网站不提供资料下载,如需下载请到原作者页面进行下载。
3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考学习用!
4、如文档内容存在违规,或者侵犯商业秘密、侵犯著作权等,请点击“违规举报”。