# cpcn **Repository Path**: hesunfly/cpcn ## Basic Information - **Project Name**: cpcn - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-05-10 - **Last Updated**: 2024-05-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 中金 中金支付PHP SDK fork自 https://github.com/lmhfq/cpcn 大佬,由于依赖版本问题,所以修改了一下,感谢大佬 ## 账服通 ``` $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( ```