paycore/xpayua
Composer 安装命令:
composer require paycore/xpayua
包简介
Simplify work with xpayua api
README 文档
README
This library aims to perform cryptographic operations for interaction with XPay.
Key generation
This command will create 2 files in a current directory. Send a public key to XPayua. Never share the private-key.
./bin/generate-keys
Usage
$privateKey = ''; // your private key $publicKey = ''; // key that you've got from XPayua $manager = new CryptManager(); $requestData = ['ID' => '']; $partner = [ 'PartnerToken' => 'TOKEN', // that you've got from XPayua 'OperationType' => 12345, // integer id of operation ]; $data = [ 'Partner' => $partner, 'Data' => $cryptManager->encrypt($requestData), 'KeyAES' => $cryptManager->getEncryptedAESKey($publicKey), 'Sign' => $cryptManager->getSignedKey($privateKey), ];
统计信息
- 总下载量: 24.39k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-02-07