OPPApplePayRequestUpdate

@interface OPPApplePayRequestUpdate : NSObject

Base class for updating the payment request after the shopper makes changes on the payment form.

  • Initializes a payment request update with the given list of summary items.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithPaymentSummaryItems:
        (nonnull NSArray<PKPaymentSummaryItem *> *)paymentSummaryItems;

    Swift

    init(paymentSummaryItems: [PKPaymentSummaryItem])

    Parameters

    paymentSummaryItems

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

  • The status of the payment request update. Set PKPaymentAuthorizationStatusSuccess for a successful update, and PKPaymentAuthorizationStatusFailure if you were unable to process the required changes. PKPaymentAuthorizationStatusSuccess by default.

    Declaration

    Objective-C

    @property (nonatomic) PKPaymentAuthorizationStatus status;

    Swift

    var status: PKPaymentAuthorizationStatus { get set }
  • The new payment summary items to update the payment request with.

    Declaration

    Objective-C

    @property (nonatomic, copy) NSArray<PKPaymentSummaryItem *> *_Nonnull paymentSummaryItems;

    Swift

    var paymentSummaryItems: [PKPaymentSummaryItem] { get set }