|
WePay iOS SDK
3.0.0
|
#import <WPConfig.h>
Instance Methods | |
| (instancetype) | - initWithClientId:environment: |
| (instancetype) | - initWithClientId:environment:useLocation:restartCardReaderAfterSuccess:restartCardReaderAfterGeneralError:restartCardReaderAfterOtherErrors: |
Properties | |
| NSString * | clientId |
| NSString * | environment |
| BOOL | useLocation |
| BOOL | restartCardReaderAfterSuccess |
| BOOL | restartCardReaderAfterGeneralError |
| BOOL | restartCardReaderAfterOtherErrors |
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 | |
| restartCardReaderAfterSuccess: | (BOOL) | restartCardReaderAfterSuccess | |
| restartCardReaderAfterGeneralError: | (BOOL) | restartCardReaderAfterGeneralError | |
| restartCardReaderAfterOtherErrors: | (BOOL) | restartCardReaderAfterOtherErrors | |
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. |
| restartCardReaderAfterSuccess | Flag to determine if the card reader should automatically restart after a successful read. |
| restartCardReaderAfterGeneralError | Flag to determine if the card reader should automatically restart after a general error (domain:kWPErrorCategoryCardReader, errorCode:WPErrorCardReaderGeneralError). |
| restartCardReaderAfterOtherErrors | Flag to determine if the card reader should automatically restart after an error other than general error. |
|
readnonatomicstrong |
Your WePay clientId for the specified environment
|
readnonatomicstrong |
The environment to be used, one of (staging, production)
|
readwritenonatomicassign |
Determines if the card reader should automatically restart after a general error (domain:kWPErrorCategoryCardReader, errorCode:WPErrorCardReaderGeneralError). Defaults to YES.
|
readwritenonatomicassign |
Determines if the card reader should automatically restart after an error other than general error. Defaults to NO.
|
readwritenonatomicassign |
Determines if the card reader should automatically restart after a successful read. Defaults to NO.
|
readwritenonatomicassign |
Determines if we should use location services. Defaults to NO.