mcxv / laravel-payment-gateway-adapter
Laravel payment adapter for various payment gateways
Package info
github.com/0x1115-inc/laravel-payment-gateway-adapter
pkg:composer/mcxv/laravel-payment-gateway-adapter
1.0.3
2025-11-26 08:05 UTC
Requires
- php: ^7.4|^8.0
- laravel/framework: ^8.0|^9.0|^10.48.29|^11.0|^12.0
Requires (Dev)
- mockery/mockery: ^1.4
- orchestra/testbench: ^6.0
- phpunit/phpunit: ^9.0
README
This package provides a simple adapter for integrating various payment gateways into Laravel 11 applications. It allows developers to easily switch between different payment providers without changing the core application logic.
The adapter does not store data or state; it simply provides a unified interface for payment operations. All actions will be broadcast via events.
Procedures
Primary Flow
@startuml actor User participant "Main Application" as App participant "Payment Gateway Adapter" as Adapter participant "Payment Provider" as Provider == Payment request == User -> App : Initiate Payment App -> App : Create Invoice App -> Adapter : Process Payment Adapter -> Provider : Payment Creation Request Provider -> Adapter : Payment Creation Response Adapter -> App : Invoice Information == Webhook == Provider -> Adapter : Send Webhook Notification Adapter -> Adapter : Create Payment Event App -> App : Handle Payment Event @enduml