2017 © Pedro Peláez
 

library msu-php-sdk

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

image

mkorkmaz/msu-php-sdk

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

  • Wednesday, July 4, 2018
  • by mkorkmaz
  • Repository
  • 3 Watchers
  • 5 Stars
  • 29 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 9 Versions
  • 4 % Grown

The README.md

MerchantSafe Unipay PHP SDK

Build Status Coverage Status Scrutinizer Code Quality Codacy Badge Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

MerchantSafe Unipay (MSU) is an online payment solution developed by Asseco SEE Turkey., (*2)

Installation

You need Composer to install MerchantSafe Unipay PHP SDK, (*3)

This library requires PHP 7.0 or later., (*4)

composer require mkorkmaz/msu-php-sdk

Documentation

You can see detailed documentation at https://mkorkmaz.github.io/msu-php-sdk-doc/, (*5)

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

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

Disclaimer

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

TODO

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

The Versions

04/07 2018

dev-master

9999999-dev https://github.com/mkorkmaz/msu-php-sdk

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

  Sources   Download

MIT

The Requires

 

The Development Requires

sdk asseco msu merchantsafeunipay

04/07 2018

1.1

1.1.0.0 https://github.com/mkorkmaz/msu-php-sdk

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

  Sources   Download

MIT

The Requires

 

The Development Requires

sdk asseco msu merchantsafeunipay

05/05 2017

1.0.1

1.0.1.0 https://github.com/mkorkmaz/msu-php-sdk

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

  Sources   Download

MIT

The Requires

 

The Development Requires

sdk asseco msu merchantsafeunipay

31/03 2017

1.0

1.0.0.0 https://github.com/mkorkmaz/msu-php-sdk

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

  Sources   Download

MIT

The Requires

 

The Development Requires

sdk asseco msu merchantsafeunipay

30/03 2017

0.3

0.3.0.0 https://github.com/mkorkmaz/msu-php-sdk

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

  Sources   Download

MIT

The Requires

 

The Development Requires

sdk asseco msu merchantsafeunipay

29/03 2017

0.2.2

0.2.2.0 https://github.com/mkorkmaz/msu-php-sdk

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

  Sources   Download

MIT

The Requires

 

The Development Requires

sdk asseco msu merchantsafeunipay

28/03 2017

0.2.1

0.2.1.0 https://github.com/mkorkmaz/msu-php-sdk

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

  Sources   Download

MIT

The Requires

 

The Development Requires

sdk asseco msu merchantsafeunipay

25/03 2017

0.2

0.2.0.0 https://github.com/mkorkmaz/msu-php-sdk

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

  Sources   Download

MIT

The Requires

 

The Development Requires

sdk asseco msu merchantsafeunipay

21/03 2017

0.1

0.1.0.0 https://github.com/mkorkmaz/msu-php-sdk

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

  Sources   Download

MIT

The Requires

 

The Development Requires

sdk asseco msu merchantsafeunipay