Package apple.passkit.protocol
Interface PKPaymentAuthorizationViewControllerDelegate
-
public interface PKPaymentAuthorizationViewControllerDelegate
-
-
Nested Class Summary
-
Method Summary
-
-
-
Method Detail
-
paymentAuthorizationViewControllerDidAuthorizePaymentCompletion
default void paymentAuthorizationViewControllerDidAuthorizePaymentCompletion(PKPaymentAuthorizationViewController controller, PKPayment payment, PKPaymentAuthorizationViewControllerDelegate.Block_paymentAuthorizationViewControllerDidAuthorizePaymentCompletion completion)
Deprecated delegate methods These methods are deprecated. Please migrate away from them to their replacements.
-
paymentAuthorizationViewControllerDidSelectPaymentMethodCompletion
default void paymentAuthorizationViewControllerDidSelectPaymentMethodCompletion(PKPaymentAuthorizationViewController controller, PKPaymentMethod paymentMethod, PKPaymentAuthorizationViewControllerDelegate.Block_paymentAuthorizationViewControllerDidSelectPaymentMethodCompletion completion)
-
paymentAuthorizationViewControllerDidSelectShippingAddressCompletion
@Deprecated default void paymentAuthorizationViewControllerDidSelectShippingAddressCompletion(PKPaymentAuthorizationViewController controller, org.moe.natj.general.ptr.ConstVoidPtr address, PKPaymentAuthorizationViewControllerDelegate.Block_paymentAuthorizationViewControllerDidSelectShippingAddressCompletion completion)
Deprecated.
-
paymentAuthorizationViewControllerDidSelectShippingContactCompletion
default void paymentAuthorizationViewControllerDidSelectShippingContactCompletion(PKPaymentAuthorizationViewController controller, PKContact contact, PKPaymentAuthorizationViewControllerDelegate.Block_paymentAuthorizationViewControllerDidSelectShippingContactCompletion completion)
-
paymentAuthorizationViewControllerDidSelectShippingMethodCompletion
default void paymentAuthorizationViewControllerDidSelectShippingMethodCompletion(PKPaymentAuthorizationViewController controller, PKShippingMethod shippingMethod, PKPaymentAuthorizationViewControllerDelegate.Block_paymentAuthorizationViewControllerDidSelectShippingMethodCompletion completion)
-
paymentAuthorizationViewControllerDidFinish
void paymentAuthorizationViewControllerDidFinish(PKPaymentAuthorizationViewController 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 paymentAuthorizationViewController:didAuthorizePayment:completion: has been shown to the user. The delegate is responsible for dismissing the view controller in this method.
-
paymentAuthorizationViewControllerWillAuthorizePayment
default void paymentAuthorizationViewControllerWillAuthorizePayment(PKPaymentAuthorizationViewController controller)
Sent to the delegate before the payment is authorized, but after the user has authenticated using passcode or Touch ID. Optional.
-
paymentAuthorizationViewControllerDidAuthorizePaymentHandler
default void paymentAuthorizationViewControllerDidAuthorizePaymentHandler(PKPaymentAuthorizationViewController controller, PKPayment payment, PKPaymentAuthorizationViewControllerDelegate.Block_paymentAuthorizationViewControllerDidAuthorizePaymentHandler 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 address then the full addresses 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.
-
paymentAuthorizationViewControllerDidSelectPaymentMethodHandler
default void paymentAuthorizationViewControllerDidSelectPaymentMethodHandler(PKPaymentAuthorizationViewController controller, PKPaymentMethod paymentMethod, PKPaymentAuthorizationViewControllerDelegate.Block_paymentAuthorizationViewControllerDidSelectPaymentMethodHandler 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 paymentAuthorizationViewControllerDidFinish: until it has invoked the completion block.
-
paymentAuthorizationViewControllerDidSelectShippingContactHandler
default void paymentAuthorizationViewControllerDidSelectShippingContactHandler(PKPaymentAuthorizationViewController controller, PKContact contact, PKPaymentAuthorizationViewControllerDelegate.Block_paymentAuthorizationViewControllerDidSelectShippingContactHandler completion)
Sent when the user has selected a new shipping address. The delegate should inspect the address and must invoke the completion block with an updated array of PKPaymentSummaryItem objects. The delegate will receive no further callbacks except paymentAuthorizationViewControllerDidFinish: until it has invoked the completion block.
-
paymentAuthorizationViewControllerDidSelectShippingMethodHandler
default void paymentAuthorizationViewControllerDidSelectShippingMethodHandler(PKPaymentAuthorizationViewController controller, PKShippingMethod shippingMethod, PKPaymentAuthorizationViewControllerDelegate.Block_paymentAuthorizationViewControllerDidSelectShippingMethodHandler 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 supplied in the original PKPaymentRequest or the address fragment provided by the last call to paymentAuthorizationViewController: didSelectShippingAddress:completion:. The delegate must invoke the completion block with an updated array of PKPaymentSummaryItem objects. The delegate will receive no further callbacks except paymentAuthorizationViewControllerDidFinish: until it has invoked the completion block.
-
paymentAuthorizationViewControllerDidRequestMerchantSessionUpdate
default void paymentAuthorizationViewControllerDidRequestMerchantSessionUpdate(PKPaymentAuthorizationViewController controller, PKPaymentAuthorizationViewControllerDelegate.Block_paymentAuthorizationViewControllerDidRequestMerchantSessionUpdate handler)
-
-