承接 oktayaydogan/payermax-sdk 相关项目开发

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

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

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2025-07-23