paymentAuthorizationViewController(_:didChangeCouponCode:handler:)
Tells the delegate that the user entered or updated a coupon code.
Declaration
optional func paymentAuthorizationViewController(_ controller: PKPaymentAuthorizationViewController, didChangeCouponCode couponCode: String, handler completion: @escaping @Sendable (PKPaymentRequestCouponCodeUpdate) -> Void)optional func paymentAuthorizationViewController(_ controller: PKPaymentAuthorizationViewController, didChangeCouponCode couponCode: String) async -> PKPaymentRequestCouponCodeUpdateParameters
- controller:
The payment authorization view controller.
- couponCode:
The coupon code.
- completion:
The completion handler to call with the updated payment summary items and shipping methods.