PHPackages                             blesta/coingate - 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. blesta/coingate

ActiveBlesta-gateway-nonmerchant[Payment Processing](/categories/payments)

blesta/coingate
===============

CoinGate

1.4.0(4y ago)0616↓50%MITPHPCI failing

Since Jun 22Pushed 4y ago4 watchersCompare

[ Source](https://github.com/blesta/gateway-coingate)[ Packagist](https://packagist.org/packages/blesta/coingate)[ Docs](https://coingate.com)[ RSS](/packages/blesta-coingate/feed)WikiDiscussions master Synced 1mo ago

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

CoinGate Gateway
================

[](#coingate-gateway)

[![Build Status](https://camo.githubusercontent.com/ee88ac5b84df034f6064738f954ec3a926980447ed7eaa8c4b96a283e1191a2e/68747470733a2f2f7472617669732d63692e6f72672f626c657374612f676174657761792d636f696e676174652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/blesta/gateway-coingate) [![Coverage Status](https://camo.githubusercontent.com/151dc544d03188395429083756976a065cc55feb728bf1da5f93ad99fcd9f7f1/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f626c657374612f676174657761792d636f696e676174652f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/blesta/gateway-coingate?branch=master)

This is a nonmerchant gateway for Blesta that integrates with [CoinGate](https://www.coingate.com/).

Install the Gateway
-------------------

[](#install-the-gateway)

1. You can install the gateway via composer:

    ```
    composer require blesta/coingate

    ```
2. Upload the source code to a /components/gateways/nonmerchant/coingate/ directory within your Blesta installation path.

    For example:

    ```
    /var/www/html/blesta/components/nonmerchant/coingate/

    ```
3. Log in to your admin Blesta account and navigate to

> Settings &gt; Payment Gateways

4. Find the CoinGate gateway and click the "Install" button to install it
5. You're done!

### Blesta Compatibility

[](#blesta-compatibility)

Blesta VersionModule Version&lt; v4.9.0v1.1.0&gt;= v4.9.0v1.2.0CoinGate PHP library
====================

[](#coingate-php-library)

PHP library for CoinGate API.

You can sign up for a CoinGate account at  for production and  for testing (sandbox).

Please note, that for Sandbox you must generate separate API credentials on . API credentials generated on  will not work for Sandbox mode.

Composer
--------

[](#composer)

You can install library via [Composer](http://getcomposer.org/). Run the following command in your terminal:

```
composer require blesta/coingate
```

Manual Installation
-------------------

[](#manual-installation)

Donwload [latest release](https://github.com/blesta/gateway-coingate/releases) and include `init.php` file.

```
require_once('/path/to/coingate/init.php');
```

Getting Started
---------------

[](#getting-started)

Usage of CoinGate library.

### Setting up CoinGate library

[](#setting-up-coingate-library)

#### Setting default authentication

[](#setting-default-authentication)

```
use CoinGate\CoinGate;

\CoinGate\CoinGate::config(array(
  'environment' => 'sandbox', // sandbox OR live
  'app_id'      => 'YOUR_APP_ID',
  'api_key'     => 'YOUR_API_KEY',
  'api_secret'  => 'YOUR_API_SECRET'
));

// $order = \CoinGate\Merchant\Order::find(7294);
```

#### Setting authentication individually

[](#setting-authentication-individually)

```
use CoinGate\CoinGate;

# \CoinGate\Merchant\Order::find($orderId, $options = array(), $authentication = array())

$order = \CoinGate\Merchant\Order::find(1087999, array(), array(
    'environment' => 'sandbox', // sandbox OR live
    'app_id' => 'YOUR_APP_ID',
    'api_key' => 'YOUR_API_KEY',
    'api_secret' => 'YOUR_API_SECRET'));
```

### Creating Merchant Order

[](#creating-merchant-order)

```
use CoinGate\CoinGate;

$post_params = array(
                   'order_id'          => 'YOUR-CUSTOM-ORDER-ID-115',
                   'price'             => 1050.99,
                   'currency'          => 'USD',
                   'receive_currency'  => 'EUR',
                   'callback_url'      => 'https://example.com/payments/callback?token=6tCENGUYI62ojkuzDPX7Jg',
                   'cancel_url'        => 'https://example.com/cart',
                   'success_url'       => 'https://example.com/account/orders',
                   'title'             => 'Order #112',
                   'description'       => 'Apple Iphone 6'
               );

$order = \CoinGate\Merchant\Order::create($post_params);

if ($order) {
    echo $order->status;
} else {
    # Order Is Not Valid
}
```

### Getting Merchant Order

[](#getting-merchant-order)

```
use CoinGate\CoinGate;

try {
    $order = \CoinGate\Merchant\Order::find(7294);

    if ($order) {
      var_dump($order);
    }
    else {
      echo 'Order not found';
    }
} catch (Exception $e) {
  echo $e->getMessage(); // BadCredentials Not found App by Access-Key
}
```

### Test API Credentials

[](#test-api-credentials)

```
$testConnection = \CoinGate\CoinGate::testConnection(array(
  'environment'   => 'sandbox',
  'app_id'        => 'APP_ID',
  'api_key'       => 'APP_KEY',
  'api_secret'    => 'APP_SECRET'
));

if ($testConnection !== true) {
  echo $testConnection; // CoinGate\BadCredentials: BadCredentials Not found App by Access-Key
}
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~218 days

Recently: every ~325 days

Total

7

Last Release

1575d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e1100c7dbee65c40edf82c25a4b7d5a34bd677ff86263396ca2ac5163da1dbe0?d=identicon)[tysonphillips](/maintainers/tysonphillips)

![](https://www.gravatar.com/avatar/b73da57e4fcb22c7d7f459b2bd00ea7bceb6252df0cd14e2d0bf4b6a145709fc?d=identicon)[paulphillips](/maintainers/paulphillips)

![](https://www.gravatar.com/avatar/49adf61c394a865424ab1d98a1a07dd448cf3aff70b13a20aa167531c765fb94?d=identicon)[Jono](/maintainers/Jono)

---

Top Contributors

[![abdyfranco](https://avatars.githubusercontent.com/u/23648083?v=4)](https://github.com/abdyfranco "abdyfranco (6 commits)")[![JReissmueller](https://avatars.githubusercontent.com/u/18198499?v=4)](https://github.com/JReissmueller "JReissmueller (5 commits)")[![tysonphillips](https://avatars.githubusercontent.com/u/8607630?v=4)](https://github.com/tysonphillips "tysonphillips (5 commits)")

---

Tags

bitcoinmerchantcoingate

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/blesta-coingate/health.svg)

```
[![Health](https://phpackages.com/badges/blesta-coingate/health.svg)](https://phpackages.com/packages/blesta-coingate)
```

###  Alternatives

[coingate/coingate-php

CoinGate library for PHP

56459.2k1](/packages/coingate-coingate-php)[coingate/omnipay-coingate

CoinGate driver for the Omnipay payment processing library

1037.0k1](/packages/coingate-omnipay-coingate)[omnipay/bitpay

BitPay driver for the Omnipay payment processing library

1383.2k1](/packages/omnipay-bitpay)[plisio/plisio-api-php

155.8k](/packages/plisio-plisio-api-php)

PHPackages © 2026

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