init(errors:paymentSummaryItems:shippingMethods:)
Creates a shipping contact update with your specified payment summary items and shipping methods.
Declaration
init(errors: [any Error]?, paymentSummaryItems: [PKPaymentSummaryItem], shippingMethods: [PKShippingMethod])Parameters
- errors:
An array of errors in the shipping contact information that the user must resolve.
- paymentSummaryItems:
An array of summary items that include any changes due to fees or credit card surcharges associated with the payment method.
- shippingMethods:
An array of shipping methods.
Discussion
Use the errors array to specify any errors in the shipping method that the user must resolve. For more information on creating user errors, see PKPaymentError.