Search by

laracodeshq / payment

abaydullah

Universal multi-payment gateway package for Laravel.

v1.0.1 2026-09-09 09:36 UTC

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