MobileMoneyGateway

class MobileMoneyGateway(config: MobileMoneyConfig, httpClient: HttpClient, apiConfig: PaymentApiConfig) : PaymentGateway

Archetype-D: no SDK, no WebView, no UI at all in pay() — mobile-money confirmation happens on the payer's phone outside this app (an STK push / SMS / USSD prompt), so all this gateway does is kick off the mock delayed-flip (POST /mock/momo/{id}) and return Pending immediately. A poll- with-backoff on the consumer side picks up the result once its backend flips it.

Constructors

Link copied to clipboard
constructor(config: MobileMoneyConfig, httpClient: HttpClient, apiConfig: PaymentApiConfig)

Properties

Link copied to clipboard
open override val id: GatewayId
Link copied to clipboard
open override val meta: GatewayMeta

Functions

Link copied to clipboard
open suspend override fun pay(host: PaymentHost, prepared: PreparedPayment): PaymentResult
Link copied to clipboard
open suspend override fun prepare(created: CreatedOrder): PreparedPayment