XenditGateway

class XenditGateway(config: XenditConfig, httpClient: HttpClient, apiConfig: PaymentApiConfig) : PaymentGateway

Archetype-D, same shape as com.siddharth.kmp.provider.mobilemoney.MobileMoneyGateway: pay() kicks off the mock delayed-flip (POST /mock/xendit/{orderId}/settle) and returns Pending immediately — a poll-with-backoff on the consumer side resolves it once its backend flips it.

Constructors

Link copied to clipboard
constructor(config: XenditConfig, 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