HostedGatewayConfig

data class HostedGatewayConfig(val gatewayId: GatewayId, val displayName: String, val region: String, val docsPath: String, val blurb: String, val capabilities: Set<Capability> = setOf(Capability.ONE_TIME_PAYMENT, Capability.CARDS), val status: GatewayStatus = GatewayStatus.MOCK_MODE, val buildCheckoutUrl: (Map<String, String>) -> String, val matchReturn: (String) -> HostedReturnOutcome?)

One hosted-checkout gateway's shape. provider:hosted-webview is a single archetype-C module that takes N of these instead of a module per gateway (dozens of hosted gateways would otherwise blow up the build graph).

Constructors

Link copied to clipboard
constructor(gatewayId: GatewayId, displayName: String, region: String, docsPath: String, blurb: String, capabilities: Set<Capability> = setOf(Capability.ONE_TIME_PAYMENT, Capability.CARDS), status: GatewayStatus = GatewayStatus.MOCK_MODE, buildCheckoutUrl: (Map<String, String>) -> String, matchReturn: (String) -> HostedReturnOutcome?)

Properties

Link copied to clipboard
Link copied to clipboard

Builds the hosted checkout URL from the backend's provider params (checkout_url, etc.).

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Return-URL interception: maps a loaded URL to a terminal outcome, or null if not yet terminal.

Link copied to clipboard
Link copied to clipboard