laracodeshq / payment
Universal multi-payment gateway package for Laravel.
v1.0.1
2026-09-09 09:36 UTC
Requires
- php: ^8.2
- ext-bcmath: *
- ext-json: *
- ext-openssl: *
- guzzlehttp/guzzle: ^7.8
- illuminate/cache: ^10.0|^11.0|^12.0|^13.0
- illuminate/database: ^10.0|^11.0|^12.0|^13.0
- illuminate/events: ^10.0|^11.0|^12.0|^13.0
- illuminate/http: ^10.0|^11.0|^12.0|^13.0
- illuminate/routing: ^10.0|^11.0|^12.0|^13.0
- illuminate/support: ^10.0|^11.0|^12.0|^13.0
- stripe/stripe-php: ^10.0|^13.0|^14.0|^15.0|^16.0|^17.0|^18.0|^19.0|^20.0|^21.0
Requires (Dev)
- braintree/braintree_php: ^6.0
- larastan/larastan: ^3.0
- laravel/pint: ^1.20
- mockery/mockery: ^1.6
- orchestra/testbench: ^8.0|^9.0|^10.0|^11.0
- pestphp/pest: ^3.0|^4.0|^5.0
- phpstan/phpstan: ^2.0
Suggests
- braintree/braintree_php: ^6.0 Required for the Braintree driver
- livewire/livewire: ^3.0 Required for the Livewire checkout component
- mollie/mollie-api-php: ^2.9 Required for the Mollie driver
- razorpay/razorpay: ^2.8 Required for the Razorpay driver
- yabacon/paystack-php: ^2.0 Required for the Paystack driver
Provides
None
Conflicts
None
Replaces
None
This package is not auto-updated.
Last update: 2026-09-09 12:47:48 UTC
README
Payment processing package for the Laracodes marketplace.
Overview
Handles payment processing with multiple gateway support:
- EPS (Easy Payment System) integration
- Payment lifecycle management (pending → completed → refunded)
- Webhook signature verification
- Invoice generation
- Subscription billing
Installation
composer require laracodeshq/payment
Supported Gateways
| Gateway | Status | Description |
|---|---|---|
| EPS | ✅ Active | Primary payment gateway |
| Manual | ✅ Active | Bank transfer / offline payments |
Usage
use Laracodes\Payment\Services\PaymentManager; $payment = app(PaymentManager::class); $result = $payment->process($order, $gateway);
Configuration
php artisan vendor:publish --tag=laracodes-payment-config
Environment Variables
| Variable | Description |
|---|---|
PAYMENT_DEFAULT_GATEWAY |
Default gateway (eps, manual) |
EPS_MERCHANT_ID |
EPS merchant identifier |
EPS_API_KEY |
EPS API key |
EPS_SECRET |
EPS webhook signing secret |
Security
- All webhook payloads verified with HMAC-SHA256
- Idempotency keys prevent duplicate charges
- Amount validated server-side (never trust client)
- Payment states tracked with immutable audit log
Webhooks
Register webhook endpoint:
Route::post('/payment/webhook/{gateway}', [PaymentWebhookController::class, 'handle']);
License
MIT — © Laracodes