alphabalex / payment-made-easy
A Laravel package for handling payments with multiple gateways (Paystack, Flutterwave, Stripe, Seerbit, etc.)
Requires
- php: ^8.1
- ext-bcmath: *
- guzzlehttp/guzzle: ^7.8.2|^8.0
- illuminate/http: ^8.83|^9.0|^10.0|^11.0|^12.0|^13.0
- illuminate/support: ^8.83|^9.0|^10.0|^11.0|^12.0|^13.0
Requires (Dev)
- orchestra/testbench: ^6.24|^7.0|^8.0|^9.0|^10.0|^11.0
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^9.5.10|^10.5|^11.0
- stripe/stripe-php: ^17.4
Suggests
- stripe/stripe-php: ^17.4 Required for StripeDriver and Stripe webhook handling (composer require stripe/stripe-php)
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-10-07 15:34:18 UTC
README
A Laravel package for integrating 16 payment gateways through a consistent payment API. Use hosted checkout, client-side SDKs, mobile-money prompts, subscriptions, transfers, virtual accounts, and payment links where supported by each provider.
- Documentation site — installation, configuration, payment flows, webhooks, and gateway guides.
- Gateway directory — provider-specific setup, examples, and capability notes.
- API reference — shared contracts and provider methods.
- Changelog — release history.
Requirements
- PHP 8.1+ and Laravel 8.83–13 (Laravel 13 requires PHP 8.3+)
- PHP
bcmathextension - Stripe users: install the optional SDK with
composer require stripe/stripe-php:^17.4
Install
composer require alphabalex/payment-made-easy
php artisan vendor:publish --provider="Alphabalex\PaymentMadeEasy\PaymentServiceProvider"
Set your default gateway and credentials in .env, then initialize a payment:
use Alphabalex\PaymentMadeEasy\Facades\Payment;
$checkout = Payment::driver('paystack')->initializePayment([
'email' => 'customer@example.com',
'amount' => 5000.00, // major currency units; do not convert to kobo/cents
'reference' => 'ORDER_123',
'callback_url' => 'https://example.com/payment/callback',
]);
// Redirect the customer to the provider's checkout URL.
See Installation, Payments, and Amount units for the complete setup and payment flow.
Gateways
Paystack · Flutterwave · Stripe · Seerbit · Monnify · Squad · OPay · Remita · Mono · Budpay · Interswitch · PayPal · M-Pesa · MTN MoMo · Razorpay · Paddle.
Optional features vary by provider. Check the gateway capability guide before calling subscriptions, transfers, virtual accounts, or payment links.