TorbatYar/backend/services/payment/app/providers/contracts.py
Mortezakoohjani 9fac160258 feat(payment): ship Torbat Pay MVP phases 14.0-14.5
Add independent payment-service (port 8012, payment_db) with foundation licensing, BYO-PSP, merchant accounts, idempotent requests, callbacks, and immutable ledger.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-27 17:57:04 +03:30

8 lines
363 B
Python

from typing import Protocol
class PspAdapter(Protocol):
async def initiate_payment(self, request: dict) -> dict: ...
async def verify_signature(self, payload: dict) -> bool: ...
async def verify_payment(self, payload: dict) -> dict: ...
class CreditProviderAdapter(Protocol):
async def authorize_financing(self, payload: dict) -> dict: ...