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