承接 lokir/cpcn 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

lokir/cpcn

最新稳定版本:v1.1

Composer 安装命令:

composer require lokir/cpcn

包简介

中金支付PHP SDK

README 文档

README

账服通

  $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(

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2025-05-06