2017 © Pedro Peláez
 

library omnipay-wepay

WePay driver for the Omnipay payment processing library

image

collizo4sky/omnipay-wepay

WePay driver for the Omnipay payment processing library

  • Tuesday, January 17, 2017
  • by collizo4sky
  • Repository
  • 1 Watchers
  • 2 Stars
  • 14,324 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 5 Forks
  • 2 Open issues
  • 10 Versions
  • 3 % Grown

The README.md

Omnipay: WePay

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

Build Status Coverage Status Code Climate Dependency Status, (*2)

Latest Stable Version Total Downloads License, (*3)

Omnipay is a framework agnostic, multi-gateway payment processing library for PHP 5.3+. This package implements WePay support for Omnipay., (*4)

Installation

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

{
    "require": {
        "collizo4sky/omnipay-wepay": "~1.0"
    }
}

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

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

Basic Usage

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

  • WePay

You need to set your accountId and accessToken. Setting testMode to true will use the sandbox environment., (*8)

This gateway supports WePay off-site and on-site purchase. The on-site purchase is possible through a credit card ID. You can generate the ID through the JavaScript SDK:, (*9)

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

On-site Payment Setup with Credit Card ID

$gateway = Omnipay::create('WePay');
$gateway->setAccountId('583276666');
$gateway->setAccessToken('STAGE_ca4cf9c5d209343d18dae0fc47b908f2d17b47654eecb1fc55bc8652946kdirl');
$gateway->setTestMode(true);

$formData = array('firstName' => 'Foo', 'lastName' => 'Baz', 'email' => 'hello@mailinator.com');

$response = $gateway->purchase(
    array(
        'token' => '3843295557',
        'transactionId' => '12345678',
        'amount'        => '25.50',
        'currency'      => 'USD',
        'description'   => 'A vacation home rental',
        'returnUrl'     => 'http://localhost.dev/wepay/complete.php',
        'card'          => $formData
    )
)->send();

Off-site Payment Setup without Credit Card ID

$gateway = Omnipay::create('WePay');
$gateway->setAccountId('583276666');
$gateway->setAccessToken('STAGE_ca4cf9c5d209343d18dae0fc47b908f2d17b47654eecb1fc55bc8652946kdirl');
$gateway->setTestMode(true);

$formData = array('firstName' => 'Foo', 'lastName' => 'Baz', 'email' => 'hello@mailinator.com');

$response = $gateway->purchase(
    array(
        'transactionId' => '12345678',
        'amount'        => '25.50',
        'currency'      => 'USD',
        'description'   => 'A vacation home rental',
        'returnUrl'     => 'http://localhost.dev/wepay/complete.php',
        'card'          => $formData
    )
)->send();

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., (*11)

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., (*12)

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., (*13)

The Versions

17/01 2017

dev-master

9999999-dev https://github.com/collizo4sky/omnipay-wepay

WePay driver for the Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

payment pay gateway merchant omnipay wepay

17/01 2017

1.3.2

1.3.2.0 https://github.com/collizo4sky/omnipay-wepay

WePay driver for the Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

payment pay gateway merchant omnipay wepay

17/01 2017

1.3.1

1.3.1.0 https://github.com/collizo4sky/omnipay-wepay

WePay driver for the Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

payment pay gateway merchant omnipay wepay

05/10 2016

1.3

1.3.0.0 https://github.com/collizo4sky/omnipay-wepay

WePay driver for the Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

payment pay gateway merchant omnipay wepay

16/02 2016

1.2.3

1.2.3.0 https://github.com/collizo4sky/omnipay-wepay

WePay driver for the Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

payment pay gateway merchant omnipay wepay

10/02 2016

1.2.2

1.2.2.0 https://github.com/collizo4sky/omnipay-wepay

WePay driver for the Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

payment pay gateway merchant omnipay wepay

15/12 2015

1.2.1

1.2.1.0 https://github.com/collizo4sky/omnipay-wepay

WePay driver for the Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

payment pay gateway merchant omnipay wepay

09/12 2015

1.2

1.2.0.0 https://github.com/collizo4sky/omnipay-wepay

WePay driver for the Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

payment pay gateway merchant omnipay wepay

13/11 2015

1.1

1.1.0.0 https://github.com/collizo4sky/omnipay-wepay

WePay driver for the Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

payment pay gateway merchant omnipay wepay

08/10 2015

1.0

1.0.0.0 https://github.com/Collizo4sky/omnipay-wepay

WePay driver for the Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

payment pay gateway merchant omnipay wepay