OPPApplePayRequestShippingContactUpdate

@interface OPPApplePayRequestShippingContactUpdate : OPPApplePayRequestUpdate

Class for updating the payment request after the shipping contact information changed.

  • Initializes a payment request update with provided errors, payment summary items and shipping methods.

    Declaration

    Objective-C

    - (nonnull instancetype)
             initWithErrors:(nullable NSArray<NSError *> *)errors
        paymentSummaryItems:
            (nonnull NSArray<PKPaymentSummaryItem *> *)paymentSummaryItems
            shippingMethods:(nonnull NSArray<PKShippingMethod *> *)shippingMethods;

    Swift

    init(errors: [any Error]?, paymentSummaryItems: [PKPaymentSummaryItem], shippingMethods: [PKShippingMethod])

    Parameters

    errors

    List of errors in the shipping contact information (available for iOS 11 and higher). See PKError for specific NSError keys to use.

    paymentSummaryItems

    The new payment summary items to update the payment request with.

    shippingMethods

    The new shipping methods to update the payment request with.

  • The new shipping methods to update the payment request with.

    Declaration

    Objective-C

    @property (nonatomic, copy) NSArray<PKShippingMethod *> *_Nonnull shippingMethods;

    Swift

    var shippingMethods: [PKShippingMethod] { get set }
  • List of errors in the shipping contact information (available for iOS 11 and higher). See PKError for specific NSError keys to use.

    Declaration

    Objective-C

    @property (nonatomic, copy, null_resettable) NSArray<NSError *> *errors;

    Swift

    var errors: [any Error]! { get set }