ApplePayConfig

data class ApplePayConfig(val merchantId: String = APPLE_MERCHANT_ID_SENTINEL, val merchantName: String = "kmp-toolkit Demo", val countryCode: String = "IN", val currencyCode: String = "INR", val supportedNetworks: Set<CardNetwork> = setOf(CardNetwork.VISA, CardNetwork.MASTERCARD, CardNetwork.AMEX, CardNetwork.DISCOVER))(source)

Everything PKPaymentRequest needs, in commonMain so it is constructible and testable without PassKit.

Ships unprovisioned on purpose. isProvisioned is the gate the gateway and the button both read, and it is false out of the box — the module is useless until a real merchant id is swapped in, and it says so through the seam rather than by throwing at authorization time.

Constructors

Link copied to clipboard
constructor(merchantId: String = APPLE_MERCHANT_ID_SENTINEL, merchantName: String = "kmp-toolkit Demo", countryCode: String = "IN", currencyCode: String = "INR", supportedNetworks: Set<CardNetwork> = setOf(CardNetwork.VISA, CardNetwork.MASTERCARD, CardNetwork.AMEX, CardNetwork.DISCOVER))

Properties

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

True only when a real Apple merchant identifier is in place.

Link copied to clipboard

This config projected onto the shared wallet contract.

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