ebisbe/paga-mas-tarde-omnipay
omnipay/omnipay).merchantId, secretKey, etc.), which must be securely stored (e.g., Laravel’s .env or Vault).| Risk Area | Severity | Mitigation Strategy |
|---|---|---|
| API Rate Limits | Medium | Implement retry logic (exponential backoff). |
| Webhook Reliability | High | Use Laravel Queues + laravel-webhooks pkg. |
| Currency/Locale | Low | Validate PMT supports the required currency. |
| Deprecation Risk | Low | Monitor Omnipay/PMT API changes. |
| Testing Complexity | Medium | Mock Omnipay gateway in unit tests. |
test: true in Omnipay).| Component | Compatibility Notes |
|---|---|
| Omnipay v3+ | Required. Ensure no breaking changes in omnipay/omnipay. |
| Laravel | Works but needs manual Omnipay service binding (no built-in Laravel support). |
| Composer | Install via composer require ebisbe/paga-mas-tarde-omnipay. |
| PHP Version | PHP 7.4+ (Omnipay’s minimum requirement). |
| PMT API | Must align with PMT’s API specs. |
$gateway = Omnipay::create('PagaMasTarde');
$gateway->setMerchantId('your_merchant_id');
$gateway->setSecretKey('your_secret_key');
PaymentGatewayService).public function purchase(array $params) {
$response = $gateway->purchase($params)->send();
return $response->isSuccessful() ? $response->getTransactionReference() : null;
}
symfony/http-foundation to parse the request.Log::debug).spatie/flysystem-circuitbreaker).| Failure Scenario | Impact | Mitigation |
|---|---|---|
| PMT API Downtime | No transactions processed | Queue failed requests for retry. |
| Webhook Delivery Failures | Inconsistent transaction states | Use idempotent webhook processing. |
| Invalid API Credentials | All transactions fail | Monitor 401 errors; alert team. |
| Currency/Merchant Mismatch | Transactions rejected | Validate params pre-submission. |
| Omnipay Version Incompatibility | Integration breaks | Pin Omnipay version in composer.json. |
How can I help you explore Laravel packages today?