PHPackages                             collizo4sky/omnipay-wepay - 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. collizo4sky/omnipay-wepay

ActiveLibrary[Payment Processing](/categories/payments)

collizo4sky/omnipay-wepay
=========================

WePay driver for the Omnipay payment processing library

1.3.2(9y ago)315.6k8[2 issues](https://github.com/collizo4sky/omnipay-wepay/issues)MITPHP

Since Oct 8Pushed 9y ago1 watchersCompare

[ Source](https://github.com/collizo4sky/omnipay-wepay)[ Packagist](https://packagist.org/packages/collizo4sky/omnipay-wepay)[ Docs](https://github.com/collizo4sky/omnipay-wepay)[ RSS](/packages/collizo4sky-omnipay-wepay/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (3)Versions (10)Used By (0)

Omnipay: WePay
==============

[](#omnipay-wepay)

**WePay driver for the Omnipay PHP payment processing library**

[![Build Status](https://camo.githubusercontent.com/d5008d999d57524548faa43f2566ee09c6229f4e2bb51e02f11e6dafa76f9ee5/68747470733a2f2f7472617669732d63692e6f72672f636f6c6c697a6f34736b792f6f6d6e697061792d77657061792e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/collizo4sky/omnipay-wepay)[![Coverage Status](https://camo.githubusercontent.com/a2fb511bd814d79ddff5855c45cd4df3d1619cab8fae9e65aa2298772379ab40/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f636f6c6c697a6f34736b792f6f6d6e697061792d77657061792f62616467652e7376673f6272616e63683d6d617374657226736572766963653d676974687562)](https://coveralls.io/github/collizo4sky/omnipay-wepay?branch=master)[![Code Climate](https://camo.githubusercontent.com/76829237353e382d546954d9a4877bf91b21bb3be67d18c40ae26bc5ffd556b8/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f436f6c6c697a6f34736b792f6f6d6e697061792d77657061792f6261646765732f6770612e737667)](https://codeclimate.com/github/Collizo4sky/omnipay-wepay)[![Dependency Status](https://camo.githubusercontent.com/207868256eb3a547b21f18dcea70f2101558cef7a77c2f3e801a311189f0af99/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3536313637366432613139333334303031353030303562382f62616467652e706e67)](https://www.versioneye.com/user/projects/561676d2a1933400150005b8)

[![Latest Stable Version](https://camo.githubusercontent.com/d2d4fa9b0c6c0ac5a55a378668eac78dc5481ca68e51648b7661f5a8884c1597/68747470733a2f2f706f7365722e707567782e6f72672f636f6c6c697a6f34736b792f6f6d6e697061792d77657061792f76657273696f6e2e706e67)](https://packagist.org/packages/collizo4sky/omnipay-wepay)[![Total Downloads](https://camo.githubusercontent.com/6da21f557ed9efc704cc8f3f5c253fd61cc5c8d3ad5877ab41a4ca5ef6d8ea47/68747470733a2f2f706f7365722e707567782e6f72672f636f6c6c697a6f34736b792f6f6d6e697061792d77657061792f642f746f74616c2e706e67)](https://packagist.org/packages/collizo4sky/omnipay-wepay)[![License](https://camo.githubusercontent.com/36c33adef4b04ab16e7360491048bd0f983a3565304141d5132a2fe4b8a15cf0/68747470733a2f2f706f7365722e707567782e6f72672f636f6c6c697a6f34736b792f6f6d6e697061792d77657061792f6c6963656e7365)](https://packagist.org/packages/collizo4sky/omnipay-wepay)

[Omnipay](https://github.com/thephpleague/omnipay) is a framework agnostic, multi-gateway payment processing library for PHP 5.3+. This package implements WePay support for Omnipay.

Installation
------------

[](#installation)

Omnipay is installed via [Composer](http://getcomposer.org/). To install, simply add it to your `composer.json` file:

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

And run composer to update your dependencies:

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

```

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

[](#basic-usage)

The following gateways are provided by this package:

- WePay

You need to set your accountId and accessToken. Setting testMode to true will use the sandbox environment.

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](https://www.wepay.com/developer/process_payments/tokenization-custom-checkout):

For general usage instructions, please see the main [Omnipay](https://github.com/thephpleague/omnipay)repository.

### On-site Payment Setup with Credit Card ID

[](#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

[](#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
-------

[](#support)

If you are having general issues with Omnipay, we suggest posting on [Stack Overflow](http://stackoverflow.com/). Be sure to add the [omnipay tag](http://stackoverflow.com/questions/tagged/omnipay) so it can be easily found.

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](https://groups.google.com/forum/#!forum/omnipay) which you can subscribe to.

If you believe you have found a bug, please report it using the [GitHub issue tracker](https://github.com/collizo4sky/omnipay-wepay/issues), or better yet, fork the library and submit a pull request.

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance7

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 54.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~58 days

Recently: every ~85 days

Total

9

Last Release

3456d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/59be5a085dd2cc872b243fec6eb78f887775972a7d0b63949dd99f8b0c945b4d?d=identicon)[w3guy](/maintainers/w3guy)

---

Top Contributors

[![w3guy](https://avatars.githubusercontent.com/u/4140659?v=4)](https://github.com/w3guy "w3guy (29 commits)")[![joshuadwire](https://avatars.githubusercontent.com/u/3169995?v=4)](https://github.com/joshuadwire "joshuadwire (22 commits)")[![hillelcoren](https://avatars.githubusercontent.com/u/4629496?v=4)](https://github.com/hillelcoren "hillelcoren (2 commits)")

---

Tags

paymentgatewaypaymerchantomnipaywepay

### Embed Badge

![Health badge](/badges/collizo4sky-omnipay-wepay/health.svg)

```
[![Health](https://phpackages.com/badges/collizo4sky-omnipay-wepay/health.svg)](https://phpackages.com/packages/collizo4sky-omnipay-wepay)
```

###  Alternatives

[lokielse/omnipay-alipay

Alipay gateway for Omnipay payment processing library

557422.8k11](/packages/lokielse-omnipay-alipay)[omnipay/mollie

Mollie driver for the Omnipay payment processing library

631.8M10](/packages/omnipay-mollie)[sudiptpa/omnipay-nabtransact

National Australia Bank (NAB) Transact driver for the Omnipay payment processing library.

1019.5k](/packages/sudiptpa-omnipay-nabtransact)[lucassmacedo/omnipay-mercadopago

MercadoPago gateway for OmniPay

155.4k](/packages/lucassmacedo-omnipay-mercadopago)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
