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
PayWithApplePayButtonAddPassToWalletButtonVerifyIdentityWithWalletButtonaddOrderToWalletButtonStyle(_:)addPassToWalletButtonStyle(_:)onApplePayPaymentMethodChange(perform:)onApplePayShippingContactChange(perform:)onApplePayShippingMethodChange(perform:)payLaterViewAction(_:)payLaterViewDisplayStyle(_:)payWithApplePayButtonStyle(_:)verifyIdentityWithWalletButtonStyle(_:)AsyncShareablePassConfigurationtransactionTask(_:action:)