PHPackages                             alegra/omnipay-masterpass - 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. alegra/omnipay-masterpass

ActiveLibrary[Payment Processing](/categories/payments)

alegra/omnipay-masterpass
=========================

Masterpass gateway for Omnipay payment processing library

v0.0.31(5y ago)02482MITPHPPHP ^7.3

Since Jun 23Pushed 5y ago5 watchersCompare

[ Source](https://github.com/alegraio/omnipay-masterpass)[ Packagist](https://packagist.org/packages/alegra/omnipay-masterpass)[ Docs](https://github.com/alegraio/omnipay-masterpass)[ RSS](/packages/alegra-omnipay-masterpass/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (33)Used By (0)

omnipay-masterpass
==================

[](#omnipay-masterpass)

[![Build Status](https://github.com/alegraio/omnipay-masterpass/workflows/tests/badge.svg)](https://github.com/alegraio/omnipay-masterpass/actions)[![Total Downloads](https://camo.githubusercontent.com/06cfce88cce5ac2d205ee43dfbbd9a58109d551ddef3d426879e760deec07b05/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616c656772612f6f6d6e697061792d6d617374657270617373)](https://packagist.org/packages/alegra/omnipay-masterpass)[![Latest Stable Version](https://camo.githubusercontent.com/503d00c390e85c0520c2eef4c1b843f256097c41d776720119790b46621f21a2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616c656772612f6f6d6e697061792d6d617374657270617373)](https://packagist.org/packages/alegra/omnipay-masterpass)[![License](https://camo.githubusercontent.com/26d4e343fb0938fc51c33a783ff9d5a7df399434de9ec540005a09c2e8fae442/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f616c656772612f6f6d6e697061792d6d617374657270617373)](https://packagist.org/packages/alegra/omnipay-masterpass)

MasterPass Domestic Integration ( Türkiye ) gateway for Omnipay V3 payment processing library [Omnipay](https://github.com/thephpleague/omnipay) is a framework agnostic, multi-gateway payment processing library for PHP 7.3+. This package implements MasterPass Online Payment Gateway support for Omnipay.

- You have to contact the MasterPass for the document.
- You need to macKey,encKey,merchantId. You can take them from MasterPass.

Requirement
-----------

[](#requirement)

- PHP &gt;= 7.3.x,
- [Omnipay V.3](https://github.com/thephpleague/omnipay) repository,
- PHPUnit to run tests

Autoload
--------

[](#autoload)

You have to install omnipay V.3

```
composer require league/omnipay:^3
```

Then you have to install omnipay-payu package:

```
composer require alegra/omnipay-masterpass
```

> `payment-masterpass` follows the PSR-4 convention names for its classes, which means you can easily integrate `payment-masterpass` classes loading in your own autoloader.

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

[](#basic-usage)

- You can use /examples folder to execute examples. This folder is exists here only to show you examples, it is not for production usage.
- First in /examples folder:

```
composer install
```

**Authorize Example**

- You can check authorize.php file in /examples folder.
- This method get token. You have to use token in all requests

```
