PHPackages                             munna/coin-payment - 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. munna/coin-payment

ActiveLibrary[Payment Processing](/categories/payments)

munna/coin-payment
==================

Cryptocurrency Payment Mehtod Provided By CoinPayment

1.0.4(4y ago)2112MITPHPPHP ^7.2

Since Oct 31Pushed 4y ago1 watchersCompare

[ Source](https://github.com/CryptocodeDevelopers/CoinPayment)[ Packagist](https://packagist.org/packages/munna/coin-payment)[ RSS](/packages/munna-coin-payment/feed)WikiDiscussions main Synced 4d ago

READMEChangelog (5)Dependencies (1)Versions (6)Used By (0)

CoinPayment
===========

[](#coinpayment)

CoinPayment Api Solution For The Laravel Applications

[![Latest Stable Version](https://camo.githubusercontent.com/b8931132866be46aa36cf7efbe0cef27be9706f29debb8343af5ec9f83c87535/687474703a2f2f706f7365722e707567782e6f72672f6d756e6e612f636f696e2d7061796d656e742f762f737461626c65)](https://packagist.org/packages/munna/coin-payment)[![Total Downloads](https://camo.githubusercontent.com/136c54b06aa59561aabe03c86a189f15b7e58a7512fbb739d51652a509bdf8c1/687474703a2f2f706f7365722e707567782e6f72672f6d756e6e612f636f696e2d7061796d656e742f646f776e6c6f616473)](https://packagist.org/packages/munna/coin-payment)[![License](https://camo.githubusercontent.com/f2d8980eb2320917da01a585395636c81532d301f2dd4040f620042cbc03c7d2/687474703a2f2f706f7365722e707567782e6f72672f6d756e6e612f636f696e2d7061796d656e742f6c6963656e7365)](https://packagist.org/packages/munna/coin-payment)[![PHP Version Require](https://camo.githubusercontent.com/13810b3af8b83175965467f9f802467caf84eb9e1ba733c60c1e50364553dc7f/687474703a2f2f706f7365722e707567782e6f72672f6d756e6e612f636f696e2d7061796d656e742f726571756972652f7068702d372e32)](https://packagist.org/packages/munna/coin-payment)

[![Banner](https://camo.githubusercontent.com/6b2a2a7147c2c6c7a11d9989976ff85fede88916d4c34d2d4a839196767049d9/68747470733a2f2f7777772e636f696e7061796d656e74732e6e65742f696d616765732f622f62616e6e6572365f3732387839302d332e6a7067)](https://www.coinpayments.net/index.php)

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

[](#installation)

You can install this package via composer:

```
$ composer require munna/coin-payment
```

ENV File Configurations
-----------------------

[](#env-file-configurations)

env variables

```
COINPAYMENT_PUBLIC_KEY=your_public_key
COINPAYMENT_PRIVATE_KEY=your_private_key
COINPAYMENT_CURRENCY=USD
COINPAYMENT_IPN_ACTIVATE=true
COINPAYMENT_MARCHANT_ID=your_marchant_id
COINPAYMENT_IPN_SECRET=your_ipn_secret
COINPAYMENT_IPN_URL=
COINPAYMENT_IPN_DEBUG_EMAIL=your_email
COINPAYMENTS_API_FORMAT=json
```

Getting Started
===============

[](#getting-started)

You can use class instance or facade instance like.

```
. . .

use Munna\CoinPayment\CoinPayment;
$coinpaymnt = new Coinpayment();
$basic = $coinpaymnt->basicInfo();

//By Facade Class
use Munna\CoinPayment\Facade\CoinPayment;
$basic = CoinPayment::basicInfo();

// Return Data as json
. . .
```

```
{
  "error": "ok",
  "result": {
    "uername": "your_user_name",
    "username": "your_user_name",
    "merchant_id": "your_marchant",
    "email": "your_email@gmail.com",
    "public_name": "Your public name",
    "time_joined": 1635623736,
    "kyc_status": false,
    "kyc_volume_limit": 100000000000,
    "kyc_volume_used": 0,
    "swych_tos_accepted": false
  },
  "status": true,
  "message": "Request Has Been Successful",
  "params": {
    "version": 1,
    "cmd": "get_basic_info",
    "key": "your_key",
    "format": "json",
    "ipn_url": null
  }
}
```

CoinPayment Services As Methods
===============================

[](#coinpayment-services-as-methods)

```
use Munna\CoinPayment\CoinPayment;
$mc = new CoinPayment();

$envVariabl = $mc->checkEnv();
$checkProperty = $mc->checkProperty();
$checkSettings = $mc->checkSettings();
$address = $mc->getAddress("BTC"); // paramater is your targeted coin name
$txDetails = $mc->txnInfo("CPFJ5EA5DZI1KRY1KKX4CXHXQW");  // parameter is txn id
$rates = $mc->rates(); // get rates
$balances = $mc->balances(); // get balanace
$txnLists = $mc->txnLists(); // get transactions lists
$withdrawDetails = $mc->withdrawDetails("CWFJ007ZT8ZFEZFUWKIKA3WF6Q");  // parameter is withdraw id

// withdraw amount
$address = "mmGSjBhsqZBm68N1rJnM7MPTNx1KVkrMxT"; // your targeted address
$data = [
    'amount' => 0.5,
    'currency' => "LTCT",
    'address' => $address,
    'auto_confirm' => 1,  // auto confirm is withour email confirmation, 0 for email confirmation
];
$withdraw = $mc->withdraw($data); // withdraw method

// create tx fields are required
$array = [
    'amount' => 0.5,  // usd amount
    'currency' => 'USD',
    'currency2' => 'LTCT',
    'buyer_email' => 'buyer@gmail.com',
    'buyer_name' => 'Buyer name',
];
$txn = $mc->createTx($array);

$withdrawList = $mc->withdrawList(); // withdrw lists
$withdrawInfo = $mc->withdrawInfo('CWFJ64IBAPZ5OJXNH2ZZKRROVO');  // parameter is withdraw id
```

CoinPayment Services As Methods By Facade Class
===============================================

[](#coinpayment-services-as-methods-by-facade-class)

```
use Munna\CoinPayment\Facade\CoinPayment;

$envVariabl = CoinPayment::checkEnv();
$checkProperty = CoinPayment::checkProperty();
$checkSettings = CoinPayment::checkSettings();
$address = CoinPayment::getAddress("BTC"); // paramater is your targeted coin name
$txDetails = CoinPayment::txnInfo("CPFJ5EA5DZI1KRY1KKX4CXHXQW");  // parameter is txn id
$rates = CoinPayment::rates(); // get rates
$balances = CoinPayment::balances(); // get balanace
$txnLists = CoinPayment::txnLists(); // get transactions lists
$withdrawDetails = CoinPayment::withdrawDetails("CWFJ007ZT8ZFEZFUWKIKA3WF6Q");  // parameter is withdraw id

// withdraw amount
$address = "mmGSjBhsqZBm68N1rJnM7MPTNx1KVkrMxT"; // your targeted address
$data = [
    'amount' => 0.5,
    'currency' => "LTCT",
    'address' => $address,
    'auto_confirm' => 1,  // auto confirm is withour email confirmation, 0 for email confirmation
];
$withdraw = CoinPayment::withdraw($data); // withdraw method

// create tx fields are required
$array = [
    'amount' => 0.5,  // usd amount
    'currency' => 'USD',
    'currency2' => 'LTCT',
    'buyer_email' => 'buyer@gmail.com',
    'buyer_name' => 'Buyer name',
];
$txn = CoinPayment::createTx($array);

$withdrawList = CoinPayment::withdrawList(); // withdrw lists
$withdrawInfo = CoinPayment::withdrawInfo('CWFJ64IBAPZ5OJXNH2ZZKRROVO');  // parameter is withdraw id
```

IPN Route &amp; IPN webhook Management
======================================

[](#ipn-route--ipn-webhook-management)

Except this path `/coinpayment/ipn` into csrf proccess in `App\Http\Middleware\VerifyCsrfToken`

```
. . .
/**
  * The URIs that should be excluded from CSRF verification.
  * This URL must be post url
  * @var array
  */
protected $except = [
    '/coinpayment/ipn' //your ipn route
];

// in your web.php
// its just an example
$route->post('coinpayment/ipn', [IpnController::class, 'ipnWebHook']);

// in IpnController.php controller or class
public function ipnWebHook(Request $get){

    // $get instance should be return txn_id as transaction id

    $coinpayment = new CoinPayment();
    // by txn_id call the txn Information
    $info = $coinpayment->txnInfo($get->txn_id);
    // here is your txn information to check txn is confirmed or not
    // here is the json format of txn info
    // and manage txn by its status
    // when status = 100 then txn is confirmed otherwise not confirmed
}
. . .
```

```
"error": "ok",
"result": {
  "time_created": 1635657533,
  "time_expires": 1635661133,
  "status": 100, // status code 100 means completed otherwise it will be 0
  "status_text": "Complete", // status Complete means complete otherwise Waiting for buyer fund...
  "type": "coins",
  "coin": "LTCT",
  "amount": 260000,
  "amountf": "0.00260000",
  "received": 260000,
  "receivedf": "0.00260000",
  "recv_confirms": 0,
  "payment_address": "mmGSjBhsqZBm68N1rJnM7MPTNx1KVkrMxT",
  "time_completed": 1635657662,
  "sender_ip": "103.92.205.5",
  "checkout": {
    "currency": "USD",
    "amount": 50000000,
    "test": 0,
    "item_number": "",
    "item_name": "",
    "details": [],
    "invoice": "",
    "custom": "",
    "ipn_url": "",
    "amountf": 0.5
  },
  "shipping": []
},
```

For more informations
=====================

[](#for-more-informations)

Please contact with  as Cryptocode developer or visits

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

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

5

Last Release

1656d ago

PHP version history (2 changes)1.0.0PHP 7.2

1.0.3PHP ^7.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/94953474?v=4)[MunnaAhmed](/maintainers/MunnaAhmed)[@munnaahmed](https://github.com/munnaahmed)

---

Top Contributors

[![munnaweber](https://avatars.githubusercontent.com/u/36112694?v=4)](https://github.com/munnaweber "munnaweber (14 commits)")

### Embed Badge

![Health badge](/badges/munna-coin-payment/health.svg)

```
[![Health](https://phpackages.com/badges/munna-coin-payment/health.svg)](https://phpackages.com/packages/munna-coin-payment)
```

###  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)
