andrewnovikof/omnipay-sberbank
Omnipay gateway for Sberbank Acquiring REST API. Create and send authorize requests, switch test mode, handle redirects and responses, and retrieve Sberbank orderId/redirect URL. Unit tested; supports PHP 7.1+ (v3.2.2) or PHP 8+ (v3.3.0).
omnipay-sberbank) is a Sberbank-specific Omnipay driver, meaning it fits seamlessly into Omnipay’s modular payment processing architecture. If the system already uses Omnipay (or plans to), this reduces coupling and simplifies maintenance.PaymentGateway) can abstract the Omnipay integration cleanly.payments-service) rather than direct Laravel integration.env() or AWS Secrets Manager)?omnipay/omnipay: ^3.4).pending, failed) should align with existing models.spatie/laravel-payments).$this->app->bind('sberbank', function ($app) {
return Omnipay\Omnipay::create('Sberbank', [
'username' => env('SBERBANK_USERNAME'),
'password' => env('SBERBANK_PASSWORD'),
'testMode' => env('SBERBANK_TEST_MODE', false),
]);
});
POST /payments/sberbank/webhook).log() or Sentry).$gateway->setTestMode(true))."INVALID_CARD").| Failure Scenario | Impact | Mitigation Strategy |
|---|---|---|
| Sberbank API downtime | Failed transactions, revenue loss | Implement retry logic (exponential backoff). |
| Webhook delivery failures | Unprocessed refunds/notifications | Use dead-letter queues and manual review. |
| Invalid payment credentials | All transactions rejected | Automated alerts + manual override. |
| PHP/Omnipay version conflict | Integration breaks | Containerized testing (Docker) pre-deploy. |
| PCI Compliance violation | Fines, blocked transactions | Automated scans (e.g., Laravel Security Checker). |
Omnipay\Omnipay::create('Sberbank', [...])).purchase(), refund(), completePurchase()).How can I help you explore Laravel packages today?