PHPackages                             nexuspay/payment-made-easy - 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. nexuspay/payment-made-easy

ActiveLibrary[Payment Processing](/categories/payments)

nexuspay/payment-made-easy
==========================

A Laravel package for handling payments with multiple gateways (Paystack, Flutterwave, Stripe, Seerbit, etc.)

00PHP

Since Jul 17Pushed 9mo agoCompare

[ Source](https://github.com/Alphabalex/payment-made-easy)[ Packagist](https://packagist.org/packages/nexuspay/payment-made-easy)[ RSS](/packages/nexuspay-payment-made-easy/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Payment Made Easy
=================

[](#payment-made-easy)

A comprehensive Laravel package for integrating multiple payment gateways with webhook support.

Supported Payment Gateways
--------------------------

[](#supported-payment-gateways)

- **Paystack** - Nigerian payment gateway

Installation Instructions
=========================

[](#installation-instructions)

1. Install via Composer
-----------------------

[](#1-install-via-composer)

```
composer require nexuspay/payment-made-easy
```

2. Publish Configuration
------------------------

[](#2-publish-configuration)

```
php artisan vendor:publish --provider="NexusPay\PaymentMadeEasy\PaymentServiceProvider"
```

3. Environment Variables
------------------------

[](#3-environment-variables)

Add the following to your .env file:

```
# Default Gateway
PAYMENT_GATEWAY=paystack
PAYMENT_CURRENCY=NGN

# Paystack
PAYSTACK_PUBLIC_KEY=your_paystack_public_key
PAYSTACK_SECRET_KEY=your_paystack_secret_key
PAYSTACK_CALLBACK_URL=https://yoursite.com/payment/callback

# Flutterwave
FLUTTERWAVE_PUBLIC_KEY=your_flutterwave_public_key
FLUTTERWAVE_SECRET_KEY=your_flutterwave_secret_key
FLUTTERWAVE_ENCRYPTION_KEY=your_flutterwave_encryption_key
FLUTTERWAVE_CALLBACK_URL=https://yoursite.com/payment/callback

# Stripe
STRIPE_PUBLIC_KEY=your_stripe_public_key
STRIPE_SECRET_KEY=your_stripe_secret_key
STRIPE_WEBHOOK_SECRET=your_stripe_webhook_secret
STRIPE_CALLBACK_URL=https://yoursite.com/payment/callback
```

4. Usage
--------

[](#4-usage)

The package is now ready to use! See the usage examples for implementation details.

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

[](#basic-usage)

```
use NexusPay\PaymentMadeEasy\Facades\Payment;

// Initialize payment
$response = Payment::driver('paystack')->initializePayment([
    'email' => 'customer@example.com',
    'amount' => 1000, // Amount in kobo/cents
    'reference' => 'ORDER_123',
    'callback_url' => 'https://yoursite.com/payment/callback',
]);

// Verify payment
$verification = Payment::driver('paystack')->verifyPayment('ORDER_123');

// Process refund
$refund = Payment::driver('paystack')->refundPayment('ORDER_123', 500);
```

Webhook Support
---------------

[](#webhook-support)

The package includes comprehensive webhook support for all gateways:

```
// Webhook URLs are automatically registered:
// POST /webhooks/payment-gateways/{gateway}

// Example: https://yoursite.com/webhooks/payment-gateways/paystack
```

Advanced Features
-----------------

[](#advanced-features)

- **Driver Pattern**: Easy to extend with new payment gateways
- **Event System**: Laravel events for payment notifications
- **Webhook Verification**: Automatic signature verification
- **Exception Handling**: Comprehensive error handling
- **Multi-Currency**: Support for multiple currencies
- **Subscription Support**: Recurring payment support where available

Testing
-------

[](#testing)

```
composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING.md](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security-related issues, please email  instead of using the issue tracker.

License
-------

[](#license)

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

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance42

Moderate activity, may be stable

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity13

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![Alphabalex](https://avatars.githubusercontent.com/u/46940605?v=4)](https://github.com/Alphabalex "Alphabalex (6 commits)")

### Embed Badge

![Health badge](/badges/nexuspay-payment-made-easy/health.svg)

```
[![Health](https://phpackages.com/badges/nexuspay-payment-made-easy/health.svg)](https://phpackages.com/packages/nexuspay-payment-made-easy)
```

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