Wallet Error
Objects representing a failiure within the Wallet SDK.
attention
These are not made with the intent on being shown to the user as they are.
Read about how to write good error messages here.
Property | Description | Type | Optional |
---|---|---|---|
problem | More detailes about specific error. | Problem | Yes |
public enum WalletError {
case noUserTokenProvided
case noPaymentTokenProvided
case invalidToken
case invalidCardNumber
case invalidMonth
case invalidYear
case monthInThePast
case yearInThePast
case invalidSecurityCode
case failedToAddCard(Problem?)
case failedToRetrievePaymentMethods(Problem?)
case failedToRemoveCard(Problem?)
case failedToUpdatePaymentMethod(Problem?)
case failedToPay(Problem?)
case failedToConfirmPaymentStatus(Problem?)
case failedToRemovePaymentMethod(Problem?)
case invalidEmailAddress
case failedToAddInvoice(Problem?)
case invalidOrganizationNumber
case failedToRetrieveBankIdToken(Problem?)
case failedToFetchPKPaymentTestToken(Problem?)
case failedToUpdatePrivateInvoice(Problem?)
case failedToUpdateCompanyInvoice(Problem?)
case companyNotFound(Problem?)
case failedToRetrieveAvailablePaymentMethods(Problem?)
case invalidPkPaymentProvided
case failedToConfirmPayment(Problem?)
case noRecurringAccountTokenProvided
case failedToRetriveRecurringAccountTypes(Problem?)
case failedToCreateRecurringAccount(Problem?)
case failedToGetBankIdUrl(Problem?)
case failedToRetrievePaymentPlanOptions(Problem?)
case unknown(Problem?)
case unknownError
}