akotsepatrice/moneyfusion-laravel
Intégration plug-and-play de MoneyFusion pour Laravel : pay-in, payout, liste des transactions, webhooks, vérification de statut, commande Artisan. Publication en une commande (config, contrôleurs, vues, migration) et liaison aux utilisateurs via Trait.
MoneyFusionService, MoneyFusionGateway), reducing boilerplate.Queue or Events system for async handling.payments table with MoneyFusion-specific fields (e.g., transaction_id, currency). May require schema migrations or Eloquent models.Payment models with MoneyFusion-specific behaviors.database, redis) for async transaction processing.PaymentProcessed, PaymentFailed events for downstream services (e.g., inventory, notifications)..env.Payment model or create a MoneyFusionPayment trait.MoneyFusionGateway service to handle API calls.routes/channels.php (Laravel 8+).tap or a logging middleware).failed_jobs table).payments tables.config to namespace MoneyFusion settings.guzzlehttp/guzzle (if used) and Laravel to avoid breaking changes.InsufficientFundsException).MoneyFusionException class to standardize errors (e.g., APITimeout, InvalidCurrency).Log facade or a dedicated service).payments table. Consider:
created_at.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| MoneyFusion API downtime | No payments processed | Implement a fallback payment method (e.g., Stripe) or queue retries. |
| Webhook delivery failures | Stale payment statuses | Use exponential backoff for webhook retries; store last known status locally. |
| Currency conversion errors | Failed transactions | Validate currencies before submission; notify users to adjust amounts. |
| Rate limit exceeded | Queue backlog | Implement retry logic with jitter; monitor queue length. |
Data corruption in payments table |
Inconsistent records | Use database transactions; add checksums for critical fields. |
How can I help you explore Laravel packages today?