PHPackages                             phuongdev89/omnipay-coinpayments - 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. phuongdev89/omnipay-coinpayments

ActiveLibrary[Payment Processing](/categories/payments)

phuongdev89/omnipay-coinpayments
================================

Coinpayments driver for the Omnipay payment processing library

01PHP

Since Jan 10Pushed 3y agoCompare

[ Source](https://github.com/phuongdev89/omnipay-coinpayments)[ Packagist](https://packagist.org/packages/phuongdev89/omnipay-coinpayments)[ RSS](/packages/phuongdev89-omnipay-coinpayments/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Omnipay: CoinPayments
=====================

[](#omnipay-coinpayments)

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

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

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

[](#installation)

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

```
{
    "require": {
        "phuongdev89/omnipay-coinpayments": "@dev"
    }
}
```

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:

- Payssion

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

Example
-------

[](#example)

### Create a transaction

[](#create-a-transaction)

```
$gateway = Omnipay::create('Coinpayments');

$gateway->initialize(array(
    'public_key' => '',
    'private_key => ''
));

$response = $gateway->transaction([
    'amount' => 10.00,
    'currency1' => 'USD',
    'currency2' => 'BTC',
    //'address' => '', // leave blank send to follow your settings on the Coin Settings page
    'item_name' => 'Test Item/Order Description',
    'ipn_url' => 'https://yourserver.com/ipn_handler.php',
])->send();

if ($response->isSuccessful()) {
    $data = $response->getData();
}
```

### Make a withdrawal

[](#make-a-withdrawal)

```
$gateway = Omnipay::create('Coinpayments');

$gateway->initialize(array(
    'public_key' => '',
    'private_key => ''
));

$response = $gateway->withdrawal([
    'amount' => 0.1,
    'currency' => 'BTC',
    'address' => '1LC9Tn7ekRXhMTzh7ZJnZ55XUBM4ZGuLhJ'
])->send();

if ($response->isSuccessful()) {
    $data = $response->getData();
}
```

### Verify purchase using hook

[](#verify-purchase-using-hook)

```
$gateway = Omnipay::create('Coinpayments');
$gateway->initialize(array(
    'ipn_secret' => '',
    'merchant_id => ''
));
$response = $gateway->completePurchase()->send();
if ($response->isSuccessful()) {
    $data = $response->getData();
}
```

### Verify purchase by get detail

[](#verify-purchase-by-get-detail)

```
$gateway = Omnipay::create('Coinpayments');
$gateway->initialize(array(
    'public_key' => '',
    'private_key => ''
));
$response = $gateway->checkPurchase([
    'txid' = > '',
])->send();
if ($response->isSuccessful()) {
    $data = $response->getData();
}
```

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

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity23

Early-stage or recently created project

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.

### Community

Maintainers

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

### Embed Badge

![Health badge](/badges/phuongdev89-omnipay-coinpayments/health.svg)

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

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

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