PHPackages                             shopia/nowpayments - 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. [API Development](/categories/api)
4. /
5. shopia/nowpayments

ActiveLibrary[API Development](/categories/api)

shopia/nowpayments
==================

A Laravel package for NowPayments API integration with sandbox support

v1.0.0(1y ago)04MITPHPPHP ^8.1

Since Dec 16Pushed 1y ago1 watchersCompare

[ Source](https://github.com/becardev/nowpayments)[ Packagist](https://packagist.org/packages/shopia/nowpayments)[ RSS](/packages/shopia-nowpayments/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Shopia NowPayments
==================

[](#shopia-nowpayments)

A Laravel package for NowPayments API integration with sandbox support.

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

[](#installation)

You can install the package via composer:

```
composer require shopia/nowpayments
```

Configuration
-------------

[](#configuration)

### 1. Publish the configuration file and migrations:

[](#1-publish-the-configuration-file-and-migrations)

```
php artisan vendor:publish --provider="Shopia\Nowpayments\NowpaymentsServiceProvider"
```

### 2. Database Configuration

[](#2-database-configuration)

This package uses the `payment_settings` table to store API keys and configuration. Make sure your table has the following columns:

- `sandbox_api_key` (string, nullable)
- `live_api_key` (string, nullable)
- `sandbox_mode` (boolean, default: true)
- `default_currency` (string, default: 'USD')

If you need to create the table, run:

```
php artisan migrate
```

### 3. Add Configuration to Database

[](#3-add-configuration-to-database)

Insert your API keys into the `payment_settings` table:

```
use App\Models\PaymentSetting;

PaymentSetting::create([
    'sandbox_api_key' => 'your-sandbox-api-key',
    'live_api_key' => 'your-live-api-key',
    'sandbox_mode' => true,
    'default_currency' => 'USD'
]);
```

Usage
-----

[](#usage)

```
use Shopia\Nowpayments\Facades\Nowpayments;

// Create an invoice
$invoice = Nowpayments::createInvoice([
    'price_amount' => 100,
    'price_currency' => 'usd',
    'order_id' => 'ORDER-123',
    'order_description' => 'Test payment',
    'success_url' => 'https://your-site.com/success',
    'cancel_url' => 'https://your-site.com/cancel',
]);
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

Unknown

Total

1

Last Release

518d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/919efeb3a6b6a71d149d43faff2384e82e21aef5025e9e9b12bb1b8f05da8ba1?d=identicon)[Becard](/maintainers/Becard)

---

Top Contributors

[![becardev](https://avatars.githubusercontent.com/u/33799332?v=4)](https://github.com/becardev "becardev (3 commits)")

### Embed Badge

![Health badge](/badges/shopia-nowpayments/health.svg)

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

###  Alternatives

[skagarwal/google-places-api

Google Places Api

1913.0M8](/packages/skagarwal-google-places-api)[dcblogdev/laravel-microsoft-graph

A Laravel Microsoft Graph API (Office365) package

168285.5k1](/packages/dcblogdev-laravel-microsoft-graph)[vluzrmos/slack-api

Wrapper for Slack.com WEB API.

102589.1k3](/packages/vluzrmos-slack-api)[smodav/mpesa

M-Pesa API implementation

16363.7k1](/packages/smodav-mpesa)[jasara/php-amzn-selling-partner-api

A fluent interface for Amazon's Selling Partner API in PHP

1344.8k1](/packages/jasara-php-amzn-selling-partner-api)[grantholle/powerschool-api

A Laravel package to make interacting with PowerSchool less painful.

1715.6k1](/packages/grantholle-powerschool-api)

PHPackages © 2026

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