HostedWebViewGateway

The archetype-C PaymentGateway: renders a hosted checkout page in a Compose WebView and resolves on return-URL redirect, per HostedGatewayConfig. One instance is created per configured gateway (see di/HostedWebViewModule.kt), all sharing the one HostedCheckoutRelay.

prepare() does no network hop of its own — the consuming app's backend already builds the checkout URL params into CreatedOrder.providerParams. pay() suspends until the WebView screen detects a terminal return-URL and reports it back through the relay.

Constructors

Link copied to clipboard
constructor(config: HostedGatewayConfig, relay: HostedCheckoutRelay)

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