Payment provider abstraction and evaluation
PaymentProvider (payments/providers/base.py): get_capabilities, create_payment, verify_payment,
refund_payment, create_payout, verify_webhook, normalize_event (provider events → DataRebel's
vocabulary), create_payout_account, create_onboarding_link, get_payout_account, register_external_wallet,
reconcile. Unsupported
operations raise UnsupportedOperation. Capabilities are exposed via GET /v1/payments/providers.
| Provider | Implemented | Notes |
|---|---|---|
| mock | complete | deterministic, simulated; failure injection; own transaction store for reconciliation |
| stripe | Checkout prepaid funding, verify, card refunds, dispute/refund webhooks, signatures, reconciliation | never charges per query; see stripe.md |
| stripe_connect | Express onboarding (hosted), readiness sync, transfers, reversal webhooks, reconciliation | separate charges and transfers; own webhook secret |
| nevermined, crossmint, bridge | extension point only | README in each directory |
Evaluation criteria (to complete before enabling any provider)
Supported countries · legal account ownership & marketplace eligibility · programmable wallet capabilities · micropayment economics · stablecoin support · payouts · fees · compliance obligations (KYC/KYB, tax forms, money-transmission) · custody model · API reliability & sandbox quality.
| Candidate | Typical role (to verify against current docs) |
|---|---|
| Stripe / Stripe Connect | card & bank funding; marketplace payouts to verified connected accounts |
| Mangopay, Adyen for Platforms | marketplace e-money / platform payouts (EU-centric) |
| Nevermined | agent payment & usage-metering protocols |
| Crossmint, Privy, Coinbase Developer Platform | programmable / embedded wallets, stablecoin rails |
| Bridge | stablecoin ↔ fiat orchestration |
Do not assume Stripe Connect authorizes general-purpose wallet custody or money transmission. Stablecoins do not remove compliance obligations. No provider functionality is implemented until verified against current documentation.