Error

public enum Error : Swift.Error, LocalizedError

Describes the error that can occur during Apple Pay payment.

  • Indicates that the user can’t make payments on any of the payment request’s supported networks.

    Declaration

    Swift

    case userCannotMakePayment
  • Indicates that the current device’s hardware doesn’t support ApplePay.

    Declaration

    Swift

    case deviceDoesNotSupportApplyPay
  • Indicates that the summaryItems array is empty.

    Declaration

    Swift

    case emptySummaryItems
  • Indicates that the grand total summary item is a negative value.

    Declaration

    Swift

    case negativeGrandTotal
  • Indicates that at least one of the summary items has an invalid amount.

    Declaration

    Swift

    case invalidSummaryItem
  • Indicates that the country code is invalid.

    Declaration

    Swift

    case invalidCountryCode
  • Indicates that the currency code is invalid.

    Declaration

    Swift

    case invalidCurrencyCode