WePay iOS SDK
7.0.0-beta-2
|
#import <WPConfig.h>
Properties | |
NSString * | clientId |
NSString * | environment |
BOOL | useLocation |
BOOL | useTestEMVCards |
BOOL | callDelegateMethodsOnMainThread |
BOOL | restartTransactionAfterSuccess |
BOOL | restartTransactionAfterGeneralError |
BOOL | restartTransactionAfterOtherErrors |
BOOL | stopCardReaderAfterOperation |
WPMockConfig * | mockConfig |
The configuration object used for initializing a WePay instance.
- (instancetype) initWithClientId: | (NSString *) | clientId | |
environment: | (NSString *) | environment | |
- (instancetype) initWithClientId: | (NSString *) | clientId | |
environment: | (NSString *) | environment | |
useLocation: | (BOOL) | useLocation | |
useTestEMVCards: | (BOOL) | useTestEMVCards | |
callDelegateMethodsOnMainThread: | (BOOL) | callDelegateMethodsOnMainThread | |
restartTransactionAfterSuccess: | (BOOL) | restartTransactionAfterSuccess | |
restartTransactionAfterGeneralError: | (BOOL) | restartTransactionAfterGeneralError | |
restartTransactionAfterOtherErrors: | (BOOL) | restartTransactionAfterOtherErrors | |
stopCardReaderAfterOperation: | (BOOL) | stopCardReaderAfterOperation | |
The designated initializer
clientId | Your WePay clientId. |
environment | The environment to be used, one of (kWPEnvironmentStage, kWPEnvironmentProduction). |
useLocation | Flag to determine if we should use location services. |
useTestEMVCards | Flag to determine if we should use test EMV cards. |
callDelegateMethodsOnMainThread | Flag to determine if delegate methods should be called on the main(UI) thread. |
restartTransactionAfterSuccess | Flag to determine if the transaction should automatically restart after a successful read. |
restartTransactionAfterGeneralError | Flag to determine if the transaction should automatically restart after a general error (domain:kWPErrorCategoryCardReader, errorCode:WPErrorCardReaderGeneralError). |
restartTransactionAfterOtherErrors | Flag to determine if the transaction should automatically restart after an error other than general error. |
stopCardReaderAfterOperation | Flag to determine if the card reader should automatically stop after an operation is completed. |
|
readwritenonatomicassign |
Determines if delegate methods should be called on the main(UI) thread. If set to NO, delegate methods will be called on a new background thread. Defaults to YES.
|
readnonatomicstrong |
Your WePay clientId for the specified environment
|
readnonatomicstrong |
The environment to be used, one of (staging, production)
|
readwritenonatomicstrong |
The configuration for using mock card reader and/or mock WepayClient implementation
|
readwritenonatomicassign |
Determines if the transaction should automatically restart after a swipe/dip general error (domain:kWPErrorCategoryCardReader, errorCode:WPErrorCardReaderGeneralError). Defaults to YES.
|
readwritenonatomicassign |
Determines if the transaction should automatically restart after a swipe/dip error other than general error. Defaults to NO.
|
readwritenonatomicassign |
Determines if the transaction should automatically restart after a successful swipe. The transaction is not restarted after a successful dip. Defaults to NO.
|
readwritenonatomicassign |
Determines if the card reader should automatically stop after an operation is completed. Defaults to YES.
|
readwritenonatomicassign |
Determines if we should use location services. Defaults to NO.
|
readwritenonatomicassign |
Determines if the card reader should accept test EMV cards. Defaults to NO. This should never be turned on in production.