shopper/payment
Laravel payment package for Shopper: unified API to manage gateways, transactions, refunds, and payment statuses. Provides configurable drivers, events, and webhooks to integrate checkout flows with your app and keep payments in sync across providers.
Payment domain, reducing boilerplate for provider-specific implementations.// Register provider in config/payment.php
'providers' => [
'stripe' => [
'key' => env('STRIPE_KEY'),
// ...
],
];
// Resolve in a service
$payment = app('payment')->provider('stripe')->charge($amount);
payments table).PaymentIntent vs. PayPal’s Order). The package may not handle all edge cases uniformly.spatie/payment) be more suitable?config/payment.php.Payment::charge()) if the package supports it.createPayment)./payments/webhook).guzzlehttp/guzzle for API calls).config/payment.php.Payment::create()).POST /payments/webhook).monolog).php-http/client).composer.json to avoid breaking changes.payments table is optimized (e.g., indexes on provider_id, status).| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Provider API downtime | Payments fail | Implement retry logic with exponential backoff. |
| Webhook delivery failures | Unconfirmed payments | Use queue + dead-letter queue for webhooks. |
| Rate |
How can I help you explore Laravel packages today?