Contents

onApplePayCouponCodeChange(perform:)

Called when a user has entered or updated a coupon code. This is required if the user is being asked to provide a coupon code.

Declaration

nonisolated func onApplePayCouponCodeChange(perform action: @escaping (String) async -> PKPaymentRequestCouponCodeUpdate) -> some View

Return Value

An update to the payment request with the coupon code.

See Also

Accessing Apple Pay and Wallet