oktayaydogan/payermax-sdk
最新稳定版本:v1.0.0
Composer 安装命令:
composer require oktayaydogan/payermax-sdk
包简介
关键字:
README 文档
README
Environment Preparation
composer install
Initialize Config
// Build parameters $merchantConfig = new MerchantConfig(); $merchantConfig->merchantNo = "your merchant no"; $merchantConfig->appId = "your merchantAppId"; $merchantConfig->merchantPrivateKey = "your private key"; $merchantConfig->payermaxPublicKey = "payermax public key"; // ISV merchant extra parameters $merchantConfig->spMerchantNo = "xxx"; $merchantConfig->merchantAuthToken = "xxx"; // Apply configuration PayermaxClient::setConfig($merchantConfig);
Send Request
// Build the business payload $requestData = '{ "outTradeNo": "PAM20220109123456111617V3", "subject": "hello", "totalAmount": "0.99", "currency": "TRY", "country": "TR", "userId": "100000002", "goodsDetails": [{ "goodsId": "60", "goodsName": "60 Diamonds", "quantity": "1", "price": "0.99", "goodsCurrency": "TRY", "showUrl": "http://domain.com" }], "language": "tr", "reference": "300011", "frontCallbackUrl": "https://domain.url", "notifyUrl": "https://domain.com" }'; $json_decodeData = json_decode($requestData, true); // Send the request and get the response $resp = PayermaxClient::send('orderAndPay', $json_decodeData); echo json_encode($resp) . "\n";
Verify Notification
PayermaxClient::verify("payermax request body", "payermax request sign");
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2025-07-23