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>
8 lines
363 B
Python
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: ...
|