Contents

init(errors:paymentSummaryItems:shippingMethods:)

Creates a payment coupon update with your specified payment summary items, errors, and shipping methods.

Declaration

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

Parameters

  • errors:

    An array of errors for the coupon code that the user must resolve.

  • paymentSummaryItems:

    An array of summary items that include any changes due to the coupon.

  • shippingMethods:

    An array of shipping methods.