PHPackages                             oktayaydogan/payermax-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. oktayaydogan/payermax-sdk

ActiveLibrary[Payment Processing](/categories/payments)

oktayaydogan/payermax-sdk
=========================

v1.0.0(11mo ago)04BSD-3-ClausePHPPHP ^8.2

Since Jul 23Pushed 11mo agoCompare

[ Source](https://github.com/oktayaydogan/payermax-sdk)[ Packagist](https://packagist.org/packages/oktayaydogan/payermax-sdk)[ Docs](https://github.com/oktayaydogan/payermax-sdk)[ RSS](/packages/oktayaydogan-payermax-sdk/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

PayerMAX Server SDK (PHP)
=========================

[](#payermax-server-sdk-php)

Environment Preparation
-----------------------

[](#environment-preparation)

```
composer install
```

Initialize Config
-----------------

[](#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
------------

[](#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
-------------------

[](#verify-notification)

```
PayermaxClient::verify("payermax request body", "payermax request sign");
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance51

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

346d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/31257020?v=4)[Oktay Aydoğan](/maintainers/oktayaydogan)[@oktayaydogan](https://github.com/oktayaydogan)

---

Top Contributors

[![PayermaxZhanglong](https://avatars.githubusercontent.com/u/101554834?v=4)](https://github.com/PayermaxZhanglong "PayermaxZhanglong (8 commits)")[![oktayaydogan](https://avatars.githubusercontent.com/u/31257020?v=4)](https://github.com/oktayaydogan "oktayaydogan (2 commits)")

---

Tags

sdkpayermax

### Embed Badge

![Health badge](/badges/oktayaydogan-payermax-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/oktayaydogan-payermax-sdk/health.svg)](https://phpackages.com/packages/oktayaydogan-payermax-sdk)
```

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k39](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[chargebee/chargebee-php

ChargeBee API client implementation for PHP

758.5M9](/packages/chargebee-chargebee-php)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
