2017 © Pedro Peláez
 

library omnipay-mobilpay

MobilPay driver for the Omnipay PHP payment processing library

image

business-mastery/omnipay-mobilpay

MobilPay driver for the Omnipay PHP payment processing library

  • Wednesday, October 28, 2015
  • by tudor-gala
  • Repository
  • 7 Watchers
  • 5 Stars
  • 985 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 9 Forks
  • 1 Open issues
  • 9 Versions
  • 8 % Grown

The README.md

Omnipay: MobilPay

MobilPay driver for the Omnipay PHP payment processing library, (*1)

Omnipay is a framework agnostic, multi-gateway payment processing library for PHP 5.4+. This package implements MOBILPAY support for Omnipay., (*2)

Installation

Omnipay is installed via Composer. To install, simply add it to your composer.json file:, (*3)

{
    "require": {
        "business-mastery/omnipay-mobilpay": "~1.0"
    }
}

And run composer to update your dependencies:, (*4)

$ curl -s http://getcomposer.org/installer | php
$ php composer.phar update

Basic Usage

The following gateways are provided by this package:, (*5)

  • MobilPay

Initiating payment request, (*6)

$gateway = Omnipay::create('MobilPay');
$gateway->setMerchantId('1234-5678-9012-3456-7890');
$gateway->setPublicKey('/path/to/public.cer');

$response = $gateway->purchase([
    'amount'     => '10.00',
    'currency'   => 'RON',
    'orderId'    => 1,
    'confirmUrl' => 'http://example.com/ipn',
    'returnUrl'  => 'http://www.google.com',
    'details'    => 'Test payment',
    'testMode'   => true,
    'params'     => [
        'selected_package' => 1
    ]
])->send();

$response->redirect();

Processing IPN requests, (*7)

$gateway = Omnipay::create('MobilPay');
$gateway->privateKeyPath('/path/to/private.key');

$response = $gateway->completePurchase($_POST)->send();
$response->sendResponse();

switch($response->getMessage())
{
    case 'confirmed_pending': // transaction is pending review. After this is done, a new IPN request will be sent with either confirmation or cancellation

        //update DB, SET status = "pending"

        break;
    case 'paid_pending': // transaction is pending review. After this is done, a new IPN request will be sent with either confirmation or cancellation

        //update DB, SET status = "pending"

        break;
    case 'paid': // transaction is pending authorization. After this is done, a new IPN request will be sent with either confirmation or cancellation

        //update DB, SET status = "open/preauthorized"

        break;
    case 'confirmed': // transaction is finalized, the money have been captured from the customer's account

        //update DB, SET status = "confirmed/captured"

        break;
    case 'canceled': // transaction is canceled

        //update DB, SET status = "canceled"

        break;
    case 'credit': // transaction has been refunded

        //update DB, SET status = "refunded"

        break;
}

For general usage instructions, please see the main Omnipay repository., (*8)

Support

If you are having general issues with Omnipay, we suggest posting on Stack Overflow. Be sure to add the omnipay tag so it can be easily found., (*9)

If you want to keep up to date with release anouncements, discuss ideas for the project, or ask more detailed questions, there is also a mailing list which you can subscribe to., (*10)

If you believe you have found a bug, please report it using the GitHub issue tracker, or better yet, fork the library and submit a pull request., (*11)

The Versions

28/10 2015

dev-master

9999999-dev https://github.com/BusienssMastery/omnipay-mobilpay

MobilPay driver for the Omnipay PHP payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tudor Galanopulos

payment pay gateway merchant purchase omnipay mobilpay

23/01 2015

1.2.0

1.2.0.0 https://github.com/BusienssMastery/omnipay-mobilpay

MobilPay driver for the Omnipay PHP payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tudor Galanopulos

payment pay gateway merchant purchase omnipay mobilpay

28/08 2014

1.1.3

1.1.3.0 https://github.com/BusienssMastery/omnipay-mobilpay

MobilPay driver for the Omnipay PHP payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tudor Galanopulos

payment pay gateway merchant purchase omnipay mobilpay

27/08 2014

1.1.2

1.1.2.0 https://github.com/BusienssMastery/omnipay-mobilpay

MobilPay driver for the Omnipay PHP payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tudor Galanopulos

payment pay gateway merchant purchase omnipay mobilpay

27/08 2014

1.1.1

1.1.1.0 https://github.com/BusienssMastery/omnipay-mobilpay

MobilPay driver for the Omnipay PHP payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tudor Galanopulos

payment pay gateway merchant purchase omnipay mobilpay

19/08 2014

1.1.0

1.1.0.0 https://github.com/BusienssMastery/omnipay-mobilpay

MobilPay driver for the Omnipay PHP payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tudor Galanopulos

payment pay gateway merchant purchase omnipay mobilpay

22/07 2014

1.0.1

1.0.1.0 https://github.com/BusienssMastery/omnipay-mobilpay

MobilPay driver for the Omnipay PHP payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tudor Galanopulos

payment pay gateway merchant purchase omnipay mobilpay

22/07 2014

1.0.2

1.0.2.0 https://github.com/BusienssMastery/omnipay-mobilpay

MobilPay driver for the Omnipay PHP payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tudor Galanopulos

payment pay gateway merchant purchase omnipay mobilpay

18/07 2014

1.0.0

1.0.0.0 https://github.com/BusienssMastery/omnipay-mobilpay

MobilPay driver for the Omnipay PHP payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Tudor Galanopulos

payment pay gateway merchant purchase omnipay mobilpay