9 #import <Foundation/Foundation.h> 27 #pragma mark - WPError constants. 61 #pragma mark - Error Codes. 212 #pragma mark - User facing messages. 217 #define WPUnexpectedErrorMessage NSLocalizedStringFromTable(@"There was an unexpected error.", @"WePay", @"There was an unexpected error."); 222 #define WPNoDataReturnedErrorMessage NSLocalizedStringFromTable(@"There was no data returned.", @"WePay", @"There was no data returned."); 227 #define WPCardReaderGeneralErrorMessage NSLocalizedStringFromTable(@"Swipe failed due to: (a) uneven swipe speed, (b) fast swipe, (c) slow swipe, or (d) damaged card.", @"WePay", @"Swipe failed due to: (a) uneven swipe speed, (b) fast swipe, (c) slow swipe, or (d) damaged card."); 232 #define WPCardReaderInitializationErrorMessage NSLocalizedStringFromTable(@"Failed to initialize card reader.", @"WePay", @"Failed to initialize card reader."); 237 #define WPCardReaderTimeoutErrorMessage NSLocalizedStringFromTable(@"Card reader timed out.", @"WePay", @"Card reader timed out."); 242 #define WPSignatureInvalidImageErrorMessage NSLocalizedStringFromTable(@"Inavlid signature image provided.", @"WePay", @"Inavlid signature image provided."); 247 #define WPNameNotFoundErrorMessage NSLocalizedStringFromTable(@"Name not found.", @"WePay", @"Name not found."); 252 #define WPInvalidCardDataErrorMessage NSLocalizedStringFromTable(@"Invalid card data.", @"WePay", @"Invalid card data."); 257 #define WPCardNotSupportedErrorMessage NSLocalizedStringFromTable(@"This card is not supported.", @"WePay", @"This card is not supported."); 262 #define WPInvalidApplicationIdErrorMessage NSLocalizedStringFromTable(@"Invalid application ID selected.", @"WePay", @"Invalid application ID selected."); 267 #define WPDeclinedByCardErrorMessage NSLocalizedStringFromTable(@"The transaction was declined by the card.", @"WePay", @"The transaction was declined by the card."); 272 #define WPCardBlockedErrorMessage NSLocalizedStringFromTable(@"This card has been blocked.", @"WePay", @"This card has been blocked."); 277 #define WPDeclinedByIssuerErrorMessage NSLocalizedStringFromTable(@"The transaction was declined by the issuer bank.", @"WePay", @"The transaction was declined by the issuer bank."); 282 #define WPIssuerUnreachableErrorMessage NSLocalizedStringFromTable(@"The issuing bank could not be reached.", @"WePay", @"The issuing bank could not be reached."); 287 #define WPInvalidAuthInfoErrorMessage NSLocalizedStringFromTable(@"The provided auth info is invalid.", @"WePay", @"The provided auth info is invalid."); 292 #define WPAuthInfoNotProvidedErrorMessage NSLocalizedStringFromTable(@"Auth info was not provided.", @"WePay", @"Auth info was not provided."); 297 #define WPPaymentMethodCannotBeTokenizedErrorMessage NSLocalizedStringFromTable(@"This payment method cannot be tokenized.", @"WePay", @"This payment method cannot be tokenized."); 302 #define WPFailedToGetBatteryLevelErrorMessage NSLocalizedStringFromTable(@"Battery level could not be determined.", @"WePay", @"Battery level could not be determined."); 307 #define WPCardReaderNotConnectedErrorMessage NSLocalizedStringFromTable(@"Card reader is not connected.", @"WePay", @"Card reader is not connected."); 312 #define WPCardReaderModelNotSupportedErrorMessage NSLocalizedStringFromTable(@"This card reader model is not supported.", @"WePay", @"This card reader model is not supported."); 317 #define WPErrorInvalidTransactionAmountErrorMessage NSLocalizedStringFromTable(@"The provided transaction amount is invalid.", @"WePay", @"The provided transaction amount is invalid."); 322 #define WPErrorInvalidTransactionCurrencyCodeErrorMessage NSLocalizedStringFromTable(@"The provided currency code is invalid.", @"WePay", @"The provided currency code is invalid."); 327 #define WPErrorInvalidTransactionAccountIDErrorMessage NSLocalizedStringFromTable(@"The provided account ID is invalid.", @"WePay", @"The provided account ID is invalid."); 332 #define WPErrorInvalidCardReaderSelectionErrorMessage NSLocalizedStringFromTable(@"Card reader selection is invalid.", @"WePay", @"Card reader selection is invalid."); 337 #define WPErrorCardReaderBatteryTooLowErrorMessage NSLocalizedStringFromTable(@"The card reader battery does not have enough charge. Please charge before using.", @"WePay", @"The card reader battery does not have enough charge. Please charge before using."); 342 #define WPErrorCardReaderUnableToConnectErrorMessage NSLocalizedStringFromTable(@"Please make sure you’re using a supported card reader and that it is fully charged.", @"WePay", @"Please make sure you’re using a supported card reader and that it is fully charged."); Definition: WPError.h:198
FOUNDATION_EXPORT NSString *const kWPErrorCategoryCardSDK
Definition: WPError.h:59
Definition: WPError.h:208
Definition: WPError.h:128
Definition: WPError.h:133
Definition: WPError.h:118
Definition: WPError.h:183
Definition: WPError.h:178
Definition: WPError.h:103
FOUNDATION_EXPORT NSString *const kWPErrorSDKDomain
Definition: WPError.h:39
Definition: WPError.h:148
Definition: WPError.h:138
Definition: WPError.h:113
FOUNDATION_EXPORT NSString *const kWPErrorCategoryNone
Definition: WPError.h:49
FOUNDATION_EXPORT NSString *const kWPErrorCategoryKey
Definition: WPError.h:44
Definition: WPError.h:153
FOUNDATION_EXPORT NSString *const kWPErrorAPIDomain
Definition: WPError.h:33
FOUNDATION_EXPORT NSString *const kWPErrorCategoryCardReader
Definition: WPError.h:54
Definition: WPError.h:143
Definition: WPError.h:173
Definition: WPError.h:188
Definition: WPError.h:168
Definition: WPError.h:163
Definition: WPError.h:193
Definition: WPError.h:123
Definition: WPError.h:203
Definition: WPError.h:158
Definition: WPError.h:108
WPErrorCode
Definition: WPError.h:67