syeedalireza / payment-gateway-orchestrator
Symfony payment orchestrator supporting multiple gateways (Stripe, PayPal, Square, Mollie) with retry and reconciliation
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:symfony-bundle
pkg:composer/syeedalireza/payment-gateway-orchestrator
Requires
- php: ^8.2
- symfony/framework-bundle: ^7.0
Requires (Dev)
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^11.0
- symfony/test-pack: ^1.0
This package is not auto-updated.
Last update: 2026-02-04 05:45:50 UTC
README
Multi-gateway payment orchestrator for Symfony supporting Stripe, PayPal, Square, and Mollie with automatic retry logic, reconciliation, and state management.
Features
- ? Multi-Gateway Support - Stripe, PayPal, Square, Mollie
- ? Auto Retry - Exponential backoff retry policy
- ? Fallback - Automatic gateway fallback
- ? Reconciliation - Payment reconciliation service
- ? State Machine - Payment state management
- ? Symfony 7+ Compatible
Installation
composer require syeedalireza/payment-gateway-orchestrator
Quick Start
Setup Orchestrator
use PaymentGatewayOrchestrator\Orchestrator\PaymentOrchestrator; use PaymentGatewayOrchestrator\Gateway\StripeGateway; use PaymentGatewayOrchestrator\Gateway\PayPalGateway; $orchestrator = new PaymentOrchestrator(); $orchestrator->registerGateway(new StripeGateway('sk_test_xxx')); $orchestrator->registerGateway(new PayPalGateway('client_id', 'secret')); $result = $orchestrator->processPayment(100.00, $customerData);
State Machine
use PaymentGatewayOrchestrator\StateMachine\PaymentStateMachine; $stateMachine = new PaymentStateMachine(); $stateMachine->transition('processing'); $stateMachine->transition('completed');
License
MIT