PHPackages                             mkorkmaz/msu-php-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. [API Development](/categories/api)
4. /
5. mkorkmaz/msu-php-sdk

ActiveLibrary[API Development](/categories/api)

mkorkmaz/msu-php-sdk
====================

Unofficial PHP SDK of MerchantSafe Unipay API by tr.asseco.com

1.1(7y ago)10831MITPHPPHP ^7.1

Since Mar 21Pushed 7y ago3 watchersCompare

[ Source](https://github.com/mkorkmaz/msu-php-sdk)[ Packagist](https://packagist.org/packages/mkorkmaz/msu-php-sdk)[ Docs](https://github.com/mkorkmaz/msu-php-sdk)[ RSS](/packages/mkorkmaz-msu-php-sdk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (7)Versions (9)Used By (0)

MerchantSafe Unipay PHP SDK
---------------------------

[](#merchantsafe-unipay-php-sdk)

[![Build Status](https://camo.githubusercontent.com/49691f94728851cd4914923cc65ffa58bf1a43c69341ea81b0850da5ff58044e/68747470733a2f2f6170692e7472617669732d63692e6f72672f6d6b6f726b6d617a2f6d73752d7068702d73646b2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/mkorkmaz/msu-php-sdk) [![Coverage Status](https://camo.githubusercontent.com/92792e50ba049135477bf2e4eb547e39baa7f9a3c24d1f34c5b8ed509b3a3890/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6d6b6f726b6d617a2f6d73752d7068702d73646b2f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/mkorkmaz/msu-php-sdk?branch=master) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/fb8ef53589cb430e453a135c4ab5b1c222860786f5368ce84fef676757b04709/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d6b6f726b6d617a2f6d73752d7068702d73646b2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/mkorkmaz/msu-php-sdk/) [![Codacy Badge](https://camo.githubusercontent.com/07cbba296a26d00fe7b3d4dae183082fb1500572d11efc77e6a2d3e5b9907ae0/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f3366343762306563316562383439366362633364373963366664626261343137)](https://www.codacy.com/app/mehmet/msu-php-sdk?utm_source=github.com&utm_medium=referral&utm_content=mkorkmaz/msu-php-sdk&utm_campaign=Badge_Grade) [![Latest Stable Version](https://camo.githubusercontent.com/0061b095a9180a1e113fcc4687d5ab7d97007966287499791be27513a233e013/68747470733a2f2f706f7365722e707567782e6f72672f6d6b6f726b6d617a2f6d73752d7068702d73646b2f762f737461626c65)](https://packagist.org/packages/mkorkmaz/msu-php-sdk) [![Total Downloads](https://camo.githubusercontent.com/3e7c5260e495d2781d03db8288766a30b7a4c605db2f77666d8a28f9e44ee351/68747470733a2f2f706f7365722e707567782e6f72672f6d6b6f726b6d617a2f6d73752d7068702d73646b2f646f776e6c6f616473)](https://packagist.org/packages/mkorkmaz/msu-php-sdk) [![Latest Unstable Version](https://camo.githubusercontent.com/1a223235846699fd615af7055c88a9a6ad78b1a6afeabf887007d39da63850df/68747470733a2f2f706f7365722e707567782e6f72672f6d6b6f726b6d617a2f6d73752d7068702d73646b2f762f756e737461626c65)](https://packagist.org/packages/mkorkmaz/msu-php-sdk) [![License](https://camo.githubusercontent.com/59a01b089bc491bf105abeff91e07f62b6cc4eb232099b4424f97d162fb4d155/68747470733a2f2f706f7365722e707567782e6f72672f6d6b6f726b6d617a2f6d73752d7068702d73646b2f6c6963656e7365)](https://packagist.org/packages/mkorkmaz/msu-php-sdk)

[MerchantSafe Unipay (MSU)](https://merchantsafeunipay.com/msu/api/v2/doc) is an online payment solution developed by [Asseco SEE Turkey](https://tr.asseco.com/).

Installation
------------

[](#installation)

You need [Composer](https://getcomposer.org/) to install MerchantSafe Unipay PHP SDK

**This library requires PHP 7.0 or later.**

```
composer require mkorkmaz/msu-php-sdk
```

Documentation
-------------

[](#documentation)

You can see detailed documentation at

Basic Usage
-----------

[](#basic-usage)

```
$env = 'https://test.merchantsafeunipay.com/msu/api/v2';
$merchant = 'COMPANYNAME'; // Given by Asseco
$merchantUser = 'apiuser@companyname.com'; // Created on MSU Panel
$merchantPassword = 'u+B56?mcjh23'; // Created on MSU Panel

$client = MerchantSafeUnipay\SDK\ClientBuilder::create()
    ->setEnvironment($env, $merchant , $merchantUser, $merchantPassword)
    ->setLogger()
    ->build();

$args = [
    'MERCHANTPAYMENTID' => $orderPaymetId,
    'CUSTOMER' => '1',
    'AMOUNT' => 123.50,
    'CURRENCY' => 'TRY',
    'CUSTOMEREMAIL' => 'mehmet@github.com',
    'CUSTOMERNAME' => 'Mehmet Korkmaz',
    'CUSTOMERIP'    => '127.0.0.1',
    'CARDPAN' => '5406675406675403', // Test Card Number
    'CARDEXPIRY' => '12.30',
    'NAMEONCARD' => 'MEHMET KORKMAZ',
    'CARDCVV' => '000'
];
$response = $client->financialTransactions('sale', $args);

echo $response['data']['responseCode']; // prints '00' which means transaction has been done successfully.
```

Actions
-------

[](#actions)

1. Financial Transactions
2. Approve Actions
3. Reject Actions
4. Session
5. Pay by Link Payment Actions
6. Recurring Plan Actions
7. Recurring Plan Card Actions
8. Recurring Plan Actions
9. Payment Type
10. Payment Policy
11. Message Content
12. e-Wallet Actions
13. Merchant Actions
14. Merchant User Actions
15. Dealer Actions
16. Dealer Type Actions
17. Dealer Payment System Type Actions
18. Query

Disclaimer
----------

[](#disclaimer)

- MerchantSafe Unipay (MSU) is trademark of Asseco SEE Turkey
- I am not affiliated with Asseco SEE Turkey

TODO
----

[](#todo)

- Integration tests of Actions (At least %80 Code Coverage)
- Argument combinations for the actions will be implemented

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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

Every ~67 days

Recently: every ~115 days

Total

8

Last Release

2866d ago

Major Versions

0.3 → 1.02017-03-30

PHP version history (2 changes)0.1PHP ^7.0

1.1PHP ^7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/dd83e5d52a2538fdcddc2d17b3579ce5277473c87f46a12fda2d1ce1276c4e83?d=identicon)[mkorkmaz](/maintainers/mkorkmaz)

---

Top Contributors

[![mkorkmaz](https://avatars.githubusercontent.com/u/585601?v=4)](https://github.com/mkorkmaz "mkorkmaz (50 commits)")

---

Tags

sdkassecomsuMerchantSafeUnipay

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mkorkmaz-msu-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/mkorkmaz-msu-php-sdk/health.svg)](https://phpackages.com/packages/mkorkmaz-msu-php-sdk)
```

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[checkout/checkout-sdk-php

Checkout.com SDK for PHP

553.3M7](/packages/checkout-checkout-sdk-php)[leapfu/cloud-printer

高扩展性云小票打印SDK，支持飞鹅云、芯烨云、易联云、快递100、映美云、佳博云、中午云、优声云等主流云打印服务，兼容 Laravel、ThinkPHP 等主流框架，统一API，易集成，易扩展。

104.5k](/packages/leapfu-cloud-printer)

PHPackages © 2026

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