Package apple.passkit.protocol
Interface PKPaymentAuthorizationControllerDelegate
-
public interface PKPaymentAuthorizationControllerDelegate
-
-
Nested Class Summary
-
Method Summary
-
-
-
Method Detail
-
paymentAuthorizationControllerDidAuthorizePaymentCompletion
default void paymentAuthorizationControllerDidAuthorizePaymentCompletion(PKPaymentAuthorizationController controller, PKPayment payment, PKPaymentAuthorizationControllerDelegate.Block_paymentAuthorizationControllerDidAuthorizePaymentCompletion completion)
-
paymentAuthorizationControllerDidSelectPaymentMethodCompletion
default void paymentAuthorizationControllerDidSelectPaymentMethodCompletion(PKPaymentAuthorizationController controller, PKPaymentMethod paymentMethod, PKPaymentAuthorizationControllerDelegate.Block_paymentAuthorizationControllerDidSelectPaymentMethodCompletion completion)
-
paymentAuthorizationControllerDidSelectShippingContactCompletion
default void paymentAuthorizationControllerDidSelectShippingContactCompletion(PKPaymentAuthorizationController controller, PKContact contact, PKPaymentAuthorizationControllerDelegate.Block_paymentAuthorizationControllerDidSelectShippingContactCompletion completion)
-
paymentAuthorizationControllerDidSelectShippingMethodCompletion
default void paymentAuthorizationControllerDidSelectShippingMethodCompletion(PKPaymentAuthorizationController controller, PKShippingMethod shippingMethod, PKPaymentAuthorizationControllerDelegate.Block_paymentAuthorizationControllerDidSelectShippingMethodCompletion completion)
These delegate methods are deprecated and have been replaced with new callbacks that allow more granular and comprehensive errors to be surfaced to users
-
paymentAuthorizationControllerDidFinish
void paymentAuthorizationControllerDidFinish(PKPaymentAuthorizationController controller)
Sent to the delegate when payment authorization is finished. This may occur when the user cancels the request, or after the PKPaymentAuthorizationStatus parameter of the paymentAuthorizationController:didAuthorizePayment:completion: has been shown to the user. The delegate is responsible for dismissing and releasing the controller in this method.
-
paymentAuthorizationControllerWillAuthorizePayment
default void paymentAuthorizationControllerWillAuthorizePayment(PKPaymentAuthorizationController controller)
Sent to the delegate before the payment is authorized, but after the user has authenticated using the side button. Optional.
-
paymentAuthorizationControllerDidAuthorizePaymentHandler
default void paymentAuthorizationControllerDidAuthorizePaymentHandler(PKPaymentAuthorizationController controller, PKPayment payment, PKPaymentAuthorizationControllerDelegate.Block_paymentAuthorizationControllerDidAuthorizePaymentHandler completion)
Sent to the delegate after the user has acted on the payment request. The application should inspect the payment to determine whether the payment request was authorized. If the application requested a shipping contact then the full contact is now part of the payment. The delegate must call completion with an appropriate authorization status, as may be determined by submitting the payment credential to a processing gateway for payment authorization.
-
paymentAuthorizationControllerDidSelectPaymentMethodHandler
default void paymentAuthorizationControllerDidSelectPaymentMethodHandler(PKPaymentAuthorizationController controller, PKPaymentMethod paymentMethod, PKPaymentAuthorizationControllerDelegate.Block_paymentAuthorizationControllerDidSelectPaymentMethodHandler completion)
Sent when the user has selected a new payment card. Use this delegate callback if you need to update the summary items in response to the card type changing (for example, applying credit card surcharges) The delegate will receive no further callbacks except paymentAuthorizationControllerDidFinish: until it has invoked the completion block.
-
paymentAuthorizationControllerDidSelectShippingContactHandler
default void paymentAuthorizationControllerDidSelectShippingContactHandler(PKPaymentAuthorizationController controller, PKContact contact, PKPaymentAuthorizationControllerDelegate.Block_paymentAuthorizationControllerDidSelectShippingContactHandler completion)
-
paymentAuthorizationControllerDidSelectShippingMethodHandler
default void paymentAuthorizationControllerDidSelectShippingMethodHandler(PKPaymentAuthorizationController controller, PKShippingMethod shippingMethod, PKPaymentAuthorizationControllerDelegate.Block_paymentAuthorizationControllerDidSelectShippingMethodHandler completion)
Sent when the user has selected a new shipping method. The delegate should determine shipping costs based on the shipping method and either the shipping address contact in the original PKPaymentRequest or the contact provided by the last call to paymentAuthorizationController: didSelectShippingContact:completion:. The delegate must invoke the completion block with an updated array of PKPaymentSummaryItem objects. The delegate will receive no further callbacks except paymentAuthorizationControllerDidFinish: until it has invoked the completion block.
-
paymentAuthorizationControllerDidRequestMerchantSessionUpdate
default void paymentAuthorizationControllerDidRequestMerchantSessionUpdate(PKPaymentAuthorizationController controller, PKPaymentAuthorizationControllerDelegate.Block_paymentAuthorizationControllerDidRequestMerchantSessionUpdate handler)
-
presentationWindowForPaymentAuthorizationController
default UIWindow presentationWindowForPaymentAuthorizationController(PKPaymentAuthorizationController controller)
-
-