2017 © Pedro Peláez
 

library omnipay-bridge

This bridge allows you to use omnipay gateways but in payum like way.

image

payum/omnipay-bridge

This bridge allows you to use omnipay gateways but in payum like way.

  • Thursday, February 22, 2018
  • by makasim
  • Repository
  • 4 Watchers
  • 15 Stars
  • 125,015 Installations
  • PHP
  • 11 Dependents
  • 8 Suggesters
  • 21 Forks
  • 0 Open issues
  • 39 Versions
  • 3 % Grown

The README.md

Supporting Payum

Payum is an MIT-licensed open source project with its ongoing development made possible entirely by the support of community and our customers. If you'd like to join them, please consider:, (*1)


OmnipayBridge

Build Status Total Downloads Latest Stable Version, (*2)

Omnipay created by Adrian Macneil. The lib provides unified api for 25+ gateway gateways. Plus, it simple, has unified, consistent API and fully covered with tests. This bridge allows you to use omnipay gateways but in payum like way., (*3)

Why should you use this bridge?

Here's an example from omnipay's repository:, (*4)

<?php
use Omnipay\Omnipay;

$gateway = Omnipay::create('Stripe');
$gateway->setApiKey('abc123');

$formData = ['number' => '4242424242424242', 'expiryMonth' => '6', 'expiryYear' => '2016', 'cvv' => '123'];
$response = $gateway->purchase(['amount' => '10.00', 'currency' => 'USD', 'card' => $formData])->send();

if ($response->isSuccessful()) {
    // payment was successful: update database
    print_r($response);
} elseif ($response->isRedirect()) {
    // redirect to offsite payment gateway
    $response->redirect();
} else {
    // payment failed: display message to customer
    echo $response->getMessage();
}

and this is same code but done with the bridge:, (*5)

<?php
use Payum\Core\PayumBuilder;
use Payum\Core\Request\Capture;
use Payum\Core\Request\GetHumanStatus;
use Payum\Core\Model\ArrayObject;

$payum = (new PayumBuilder())
    ->addDefaultStorages()
    ->addGateway('stripe', ['factory' => 'omnipay_stripe', 'apiKey' => 'abc123'])
    ->getPayum()
;

$card = ['number' => '4242424242424242', 'expiryMonth' => '6', 'expiryYear' => '2016', 'cvv' => '123'];
$payment = new ArrayObject(['amount' => '10.00', 'currency' => 'USD', 'card' => $card]);

if ($reply = $payum->getGateway('stripe')->execute(new Capture($payment), true)) {
    // convert reply to http response
}

$payum->getGateway('stripe')->execute($status = new GetHumanStatus($payment));
if ($status->isCaptured()) {
    // success
}

Well more or less same amount of code but with the bridge you get more out of the box:, (*6)

  • Return\Cancel urls are generated just of the box. The urls are unique and do not expose any sensitive information.
  • If you do not pass credit card, Payum asks a user for it, showing the page with the form.
  • You can use Payum's packages for Symfony,Laravel,Silex,Zend,Yii with the bridge.
  • Storages. Your payment is already stored on the filesystem. We advice not to use this storage in prod.
  • The payment model contains all the information we were able to get from omnipay. Just use it.
  • Payum abstracts workflow. It knows when Omnipay's purchase or purchaseComplete methods should be used.
  • Credit card details are protected from accidental storing on your side.
  • Using the builder you can overwrite any part you want, or add a Payum extension.

Resources

Developed by Forma-Pro

Forma-Pro is a full stack development company which interests also spread to open source development. Being a team of strong professionals we have an aim an ability to help community by developing cutting edge solutions in the areas of e-commerce, docker & microservice oriented architecture where we have accumulated a huge many-years experience. Our main specialization is Symfony framework based solution, but we are always looking to the technologies that allow us to do our job the best way. We are committed to creating solutions that revolutionize the way how things are developed in aspects of architecture & scalability., (*7)

If you have any questions and inquires about our open source development, this product particularly or any other matter feel free to contact at opensource@forma-pro.com, (*8)

License

OmnipayBridge is released under the MIT License., (*9)

The Versions

22/02 2018

dev-master

9999999-dev https://payum.forma-pro.com/

This bridge allows you to use omnipay gateways but in payum like way.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kotlyar Maksim

payment omnipay

07/11 2016

1.2.5

1.2.5.0 https://github.com/Payum/OmnipayBridge

This bridge allows you to use omnipay gateways but in payum like way.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kotlyar Maksim

payment omnipay

10/10 2016

1.2.4

1.2.4.0 https://github.com/Payum/OmnipayBridge

This bridge allows you to use omnipay gateways but in payum like way.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kotlyar Maksim

payment omnipay

15/09 2016

1.2.3

1.2.3.0 https://github.com/Payum/OmnipayBridge

This bridge allows you to use omnipay gateways but in payum like way.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kotlyar Maksim

payment omnipay

03/03 2016

1.2.2

1.2.2.0 https://github.com/Payum/OmnipayBridge

This bridge allows you to use omnipay gateways but in payum like way.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kotlyar Maksim

payment omnipay

01/03 2016

1.2.1

1.2.1.0 https://github.com/Payum/OmnipayBridge

This bridge allows you to use omnipay gateways but in payum like way.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kotlyar Maksim

payment omnipay

11/02 2016

1.0.3

1.0.3.0 https://github.com/Payum/OmnipayBridge

This bridge allows you to use omnipay gateways but in payum like way.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kotlyar Maksim

payment omnipay

11/02 2016

1.2.0

1.2.0.0 https://github.com/Payum/OmnipayBridge

This bridge allows you to use omnipay gateways but in payum like way.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kotlyar Maksim

payment omnipay

11/12 2015

1.0.2

1.0.2.0 https://github.com/Payum/OmnipayBridge

This bridge allows you to use omnipay gateways but in payum like way.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kotlyar Maksim

payment omnipay

27/11 2015

1.0.1

1.0.1.0 https://github.com/Payum/OmnipayBridge

This bridge allows you to use omnipay gateways but in payum like way.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kotlyar Maksim

payment omnipay

29/10 2015

1.0.0

1.0.0.0 https://github.com/Payum/OmnipayBridge

This bridge allows you to use omnipay gateways but in payum like way.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kotlyar Maksim

payment omnipay

14/08 2015

1.0.0-BETA1

1.0.0.0-beta1 https://github.com/Payum/OmnipayBridge

This bridge allows you to use omnipay gateways but in payum like way.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kotlyar Maksim

payment omnipay

07/05 2015

0.15.x-dev

0.15.9999999.9999999-dev https://github.com/Payum/OmnipayBridge

This bridge allows you to use omnipay gateways but in payum like way.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kotlyar Maksim

payment omnipay

07/05 2015

0.15.1

0.15.1.0 https://github.com/Payum/OmnipayBridge

This bridge allows you to use omnipay gateways but in payum like way.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kotlyar Maksim

payment omnipay

28/04 2015

0.15.0

0.15.0.0 https://github.com/Payum/OmnipayBridge

This bridge allows you to use omnipay gateways but in payum like way.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kotlyar Maksim

payment omnipay

05/03 2015

0.14.x-dev

0.14.9999999.9999999-dev https://github.com/Payum/OmnipayBridge

This bridge allows you to use omnipay gateways but in payum like way.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kotlyar Maksim

payment omnipay

05/03 2015

0.14.2

0.14.2.0 https://github.com/Payum/OmnipayBridge

This bridge allows you to use omnipay gateways but in payum like way.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kotlyar Maksim

payment omnipay

03/03 2015

0.14.1

0.14.1.0 https://github.com/Payum/OmnipayBridge

This bridge allows you to use omnipay gateways but in payum like way.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kotlyar Maksim

payment omnipay

23/02 2015

0.14.0

0.14.0.0 https://github.com/Payum/OmnipayBridge

This bridge allows you to use omnipay gateways but in payum like way.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kotlyar Maksim

payment omnipay

28/12 2014

0.13.x-dev

0.13.9999999.9999999-dev https://github.com/Payum/OmnipayBridge

This bridge allows you to use omnipay gateways but in payum like way.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kotlyar Maksim

payment omnipay

28/12 2014

0.13.0

0.13.0.0 https://github.com/Payum/OmnipayBridge

This bridge allows you to use omnipay gateways but in payum like way.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kotlyar Maksim

payment omnipay

29/10 2014

0.12.x-dev

0.12.9999999.9999999-dev https://github.com/Payum/OmnipayBridge

This bridge allows you to use omnipay gateways but in payum like way.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kotlyar Maksim

payment omnipay

29/10 2014

0.12.0

0.12.0.0 https://github.com/Payum/OmnipayBridge

This bridge allows you to use omnipay gateways but in payum like way.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kotlyar Maksim

payment omnipay

15/09 2014

0.11.x-dev

0.11.9999999.9999999-dev https://github.com/Payum/OmnipayBridge

This bridge allows you to use omnipay gateways but in payum like way.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kotlyar Maksim

payment omnipay

15/09 2014

0.11.1

0.11.1.0 https://github.com/Payum/OmnipayBridge

This bridge allows you to use omnipay gateways but in payum like way.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kotlyar Maksim

payment omnipay

10/09 2014

0.11.0

0.11.0.0 https://github.com/Payum/OmnipayBridge

This bridge allows you to use omnipay gateways but in payum like way.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kotlyar Maksim

payment omnipay

31/07 2014

0.10.x-dev

0.10.9999999.9999999-dev https://github.com/Payum/OmnipayBridge

This bridge allows you to use omnipay gateways but in payum like way.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kotlyar Maksim

payment omnipay

31/07 2014

0.10.0

0.10.0.0 https://github.com/Payum/OmnipayBridge

This bridge allows you to use omnipay gateways but in payum like way.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kotlyar Maksim

payment omnipay

21/06 2014

0.9.x-dev

0.9.9999999.9999999-dev https://github.com/Payum/OmnipayBridge

This bridge allows you to use omnipay gateways but in payum like way.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Maksim Kotlyar

payment omnipay

17/06 2014

0.9.0

0.9.0.0 https://github.com/Payum/OmnipayBridge

This bridge allows you to use omnipay gateways but in payum like way.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Maksim Kotlyar

payment omnipay

02/04 2014

0.8.x-dev

0.8.9999999.9999999-dev https://github.com/Payum/OmnipayBridge

This bridge allows you to use omnipay gateways but in payum like way.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Maksim Kotlyar

payment omnipay

02/04 2014

0.8.0

0.8.0.0 https://github.com/Payum/OmnipayBridge

This bridge allows you to use omnipay gateways but in payum like way.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Maksim Kotlyar

payment omnipay

26/12 2013

0.7.x-dev

0.7.9999999.9999999-dev https://github.com/Payum/OmnipayBridge

This bridge allows you to use omnipay gateways but in payum like way.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Maksim Kotlyar

payment omnipay

26/12 2013

0.7.0

0.7.0.0 https://github.com/Payum/OmnipayBridge

This bridge allows you to use omnipay gateways but in payum like way.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Maksim Kotlyar

payment omnipay

25/10 2013

0.6.x-dev

0.6.9999999.9999999-dev https://github.com/Payum/OmnipayBridge

This bridge allows you to use omnipay gateways but in payum like way.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Maksim Kotlyar

payment omnipay

25/10 2013

0.6.0

0.6.0.0 https://github.com/Payum/OmnipayBridge

This bridge allows you to use omnipay gateways but in payum like way.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Maksim Kotlyar

payment omnipay

03/06 2013

0.5.0

0.5.0.0 https://github.com/Payum/OmnipayBridge

This bridge allows you to use omnipay gateways but in payum like way.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Maksim Kotlyar

payment omnipay

04/04 2013

0.4.0

0.4.0.0 https://github.com/Payum/OmnipayBridge

This bridge allows you to use omnipay gateways but in payum like way.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Maksim Kotlyar

payment omnipay

19/03 2013

0.3.0

0.3.0.0 https://github.com/Payum/OmnipayBridge

This bridge allows you to use omnipay gateways but in payum like way.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Maksim Kotlyar

payment omnipay