chore: condense all docs and markdown files
This commit is contained in:
@@ -1,30 +1,23 @@
|
||||
# ADR 0002: Moyasar As The Payment Gateway
|
||||
# ADR 0002: Moyasar As Payment Gateway
|
||||
|
||||
## Status
|
||||
|
||||
Accepted
|
||||
|
||||
## Context
|
||||
|
||||
The platform needs a payment gateway that supports Saudi Arabia, SAR currency defaults, and local payment methods (e.g. STC Pay, Apple Pay, Samsung Pay). The backend already implements a `MoyasarGateway` integration and models `payments.Payment` with a `moyasar` provider option.
|
||||
MVP requires KSA-focused payment support (SAR + local methods).
|
||||
|
||||
## Decision
|
||||
|
||||
Use Moyasar as the payment gateway for the MVP. Payment creation, capture, refund, and webhook reconciliation are implemented through `apps.payments.services.gateway.MoyasarGateway`.
|
||||
Use Moyasar as the primary gateway for payment creation and webhook reconciliation.
|
||||
|
||||
## Consequences
|
||||
|
||||
- Supports KSA-focused payment methods and SAR by default.
|
||||
- Operational dependency on Moyasar uptime and API stability.
|
||||
- Payment flows and webhooks are tied to the Moyasar API surface until a gateway abstraction is expanded.
|
||||
- Strong KSA fit for MVP.
|
||||
- External dependency on Moyasar uptime/API stability.
|
||||
- Gateway abstraction can be expanded later for multi-provider support.
|
||||
|
||||
## Alternatives Considered
|
||||
|
||||
- Other regional gateways: deferred until the MVP is validated.
|
||||
- Stripe or similar global providers: not selected for MVP due to KSA-specific coverage priorities.
|
||||
- Other regional gateways: deferred.
|
||||
- Global-first provider: not selected for MVP priorities.
|
||||
|
||||
## Related
|
||||
|
||||
- `backend/apps/payments/services/gateway.py`
|
||||
- `docs/runbooks/payments_sanity_check.md`
|
||||
- `docs/architecture.md`
|
||||
|
||||
Reference in New Issue
Block a user