PHPackages                             ptuchik/omnipay-binancepay - 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. ptuchik/omnipay-binancepay

ActiveLibrary[Payment Processing](/categories/payments)

ptuchik/omnipay-binancepay
==========================

BinancePay gateway for Omnipay payment processing library

1.0.3(4y ago)0411MITPHP

Since Feb 26Pushed 4y ago1 watchersCompare

[ Source](https://github.com/ptuchik/omnipay-binancepay)[ Packagist](https://packagist.org/packages/ptuchik/omnipay-binancepay)[ Docs](https://github.com/ptuchik/omnipay-binancepay)[ RSS](/packages/ptuchik-omnipay-binancepay/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (6)Used By (0)

Omnipay: BinancePay
===================

[](#omnipay-binancepay)

**BinancePay driver for the Omnipay Laravel payment processing library**

[![Latest Stable Version](https://camo.githubusercontent.com/8d1f76f4391d4744b83a31eec34e3afa9fcfb7dce018c4fa120c10d7a3827da1/68747470733a2f2f706f7365722e707567782e6f72672f7074756368696b2f6f6d6e697061792d62696e616e63657061792f76657273696f6e2e706e67)](https://packagist.org/packages/ptuchik/omnipay-binancepay)[![Total Downloads](https://camo.githubusercontent.com/3b3c6052b7d5afdbe58193ac9de7fa8cfe208f6fd03146307c901b73763bc4d5/68747470733a2f2f706f7365722e707567782e6f72672f7074756368696b2f6f6d6e697061792d62696e616e63657061792f642f746f74616c2e706e67)](https://packagist.org/packages/ptuchik/omnipay-binancepay)

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

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

[](#installation)

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

```
{
    "require": {
        "ptuchik/omnipay-binancepay": "~1.0"
    }
}
```

And run composer to update your dependencies:

```
composer update

```

Or you can simply run

```
composer require ptuchik/omnipay-binancepay

```

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

[](#basic-usage)

1. Use Omnipay gateway class:

```
    use Omnipay\Omnipay;
```

2. Initialize BinancePay gateway:

```
    $gateway = Omnipay::create('BinancePay');
    $gateway->setApiKey(env('API_KEY'));
    $gateway->setSecret(env('SECRET'));
```

3. Call purchase, it will automatically redirect to BinancePay's hosted page

```
    $purchase = $gateway->purchase();
    $purchase->setCryptoCurrency('USDT'); // Currenctly supports only USDT
    $purchase->setNonce(\Str::random(32));
    $purchase->setAmount(10); // Amount to charge
    $purchase->setDescription(XXXX); // Some description about the items you sell
    $purchase->setReturnUrl(XXXX); // Set the URL where the customer will be directed after successful payment
    $purchase->setCancelUrl(XXXX); // Set the URL where the customer will be directed on failed or cancelled payment

    $purchase->send()->redirect();
```

4. Create a webhook controller to handle the callback request at your webhook endpoint and catch the webhook as follows

```
    $gateway = Omnipay::create('BinancePay');
    $gateway->setApiKey(env('API_KEY'));
    $gateway->setSecret(env('SECRET'));

    $request = $gateway->completePurchase()
    $request->setNonce(\Str::random(32));
    $request->setTransactionId(XXXX); // Transaction ID from your system

    $purchase = $request->send();

    // Do the rest with $purchase and response with 'OK'
    if ($purchase->isSuccessful()) {

        // Your logic

    }

    return \Response::json([
            'returnCode'    => 'SUCCESS',
            'returnMessage' => null
        ]);
```

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

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/ptuchik/omnipay-binancepay/issues), or better yet, fork the library and submit a pull request.

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

4

Last Release

1586d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/97d8960403b7a3aee623f5b5ea9964219b6d23abc8a5c6b893a0832ddcf2d70f?d=identicon)[ptuchik](/maintainers/ptuchik)

---

Top Contributors

[![ptuchik](https://avatars.githubusercontent.com/u/4479697?v=4)](https://github.com/ptuchik "ptuchik (9 commits)")

---

Tags

paymentgatewaypaymerchantomnipaypurchasebinancebinancepay

### Embed Badge

![Health badge](/badges/ptuchik-omnipay-binancepay/health.svg)

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

###  Alternatives

[lokielse/omnipay-alipay

Alipay gateway for Omnipay payment processing library

586422.8k10](/packages/lokielse-omnipay-alipay)

PHPackages © 2026

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