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(9mo ago)04BSD-3-ClausePHPPHP ^8.2

Since Jul 23Pushed 9mo 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 1mo ago

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

31

—

LowBetter than 68% of packages

Maintenance59

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity48

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

289d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f161987a5152ae101aa0af828bb29279962a7ff12c51516c15de4055bc6cf74a?d=identicon)[oktayaydogan](/maintainers/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)
```

PHPackages © 2026

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