This package is abandoned and no longer maintained. No replacement package was suggested.
There is no license information available for the latest version (2.0) of this package.

BTC-E gateway for Omnipay payment processing library

2.0 2017-09-21 20:01 UTC

This package is auto-updated.

Last update: 2021-07-10 04:17:38 UTC


Build Status Codacy Badge Latest Stable Version Total Downloads

BTC-E (WEX.NZ) API gateway for Omnipay payment processing library.

Omnipay is a framework agnostic, multi-gateway payment processing library for PHP 5.3+. This package implements Advcash support for Omnipay.


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

    "require": {
        "aleksandrzhiliaev/omnipay-btc-e": "*"

And run composer to update your dependencies:

$ curl -s | php
$ php composer.phar update

Basic Usage

The following gateways are provided by this package:

  • BTC-E (WEX.NZ) codes

For general usage instructions, please see the main Omnipay repository. See also the WEX.NZ Documentation


  1. Validate webhook:
$gateway = Omnipay::create('Btce');


try {
    $response = $gateway->completePurchase()->send();
    $success = $response->isSuccessful();
    if ($success) {
        $transactionId = $response->getTransactionId();
        $amount = $response->getAmount();
        $currency = $response->getCurrency();
    } else {
        // $response->getMessage();
} catch (\Exception $e) {
  // check $e->getMessage()
  1. Do refund
try {
    $response = $gateway->refund(
            'payeeAccount' => '',
            'amount' => 0.1,
            'description' => 'Testing advcash',
            'currency' => 'USD',

    if ($response->isSuccessful()) {
        print $response->getCoupon();
    } else {
        // check $response->getMessage();

} catch (\Exception $e) {
    // check $e->getMessage();


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.

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.

If you believe you have found a bug, please report it using the GitHub issue tracker.