PaymentSDK
Mobile payment SDK
|
Payment processing client. More...
#import <WDClient.h>
Public Instance Methods | |
(nullable instancetype) | - init |
(nullable instancetype) | - initWithEnvironment: |
It initilizes client for processing payments. More... | |
(nullable instancetype) | - initWithEnvironment:error: |
It initilizes client for processing payments. More... | |
(void) | - makePayment:withCompletion: |
Trigger payment process. More... | |
(void) | - makePayment:withStyle:withCompletion: |
Trigger payment process. More... | |
(void) | - checkPayment:withCompletion: |
Public Instance Methods inherited from NSObject | |
(Class) | - classForCoder |
(id) | - copy |
(void) | - dealloc |
(void) | - finalize |
(id) | - init |
(id) | - mutableCopy |
Public Instance Methods inherited from <NSObject> | |
(NSString *) | - description |
(NSUInteger) | - hash |
(BOOL) | - isEqual: |
Additional Inherited Members | |
Public Class Methods inherited from NSObject | |
(id) | + alloc |
(Class) | + class |
(void) | + initialize |
(void) | + load |
(id) | + new |
Payment processing client.
- (void) checkPayment: | (nonnull WDPayment *) | payment | |
withCompletion: | (nonnull WDCompletionBlock) | completionBlock | |
- (nullable instancetype) init |
- (nullable instancetype) initWithEnvironment: | (WDEnvironment) | environment |
It initilizes client for processing payments.
environment | Environment for processing payments |
- (nullable instancetype) initWithEnvironment: | (WDEnvironment) | environment | |
error: | (NSError *_Nullable __autoreleasing *_Nullable) | error | |
It initilizes client for processing payments.
environment | Environment for processing payments |
error | Error contains code WDErrorCode |
- (void) makePayment: | (nonnull WDPayment *) | payment | |
withCompletion: | (nonnull WDCompletionBlock) | completionBlock | |
Trigger payment process.
Payment method is defined by payment object. Each payment method is defined in separate subclass of WDPayment. Supported payment methods: WDApplePayManagedPayment, WDApplePayPayment, WDCardPayment, WDPayPalPayment, WDSEPAPayment
payment | defines payment process |
completionBlock | will be called at the very end of payment flow. It provides payment response or a descriptive error with more details in the payment response |
- (void) makePayment: | (nonnull WDPayment *) | payment | |
withStyle: | (nullable WDStyle *) | style | |
withCompletion: | (nonnull WDCompletionBlock) | completionBlock | |
Trigger payment process.
Payment method is defined by payment object. Each payment method is defined in separate subclass of WDPayment. Supported payment methods: WDApplePayManagedPayment, WDApplePayPayment, WDCardPayment, WDPayPalPayment, WDSEPAPayment
payment | defines payment process |
style | can be defined by WDBaseStyle, WDCardStyle, WDSEPAStyle |
completionBlock | will be called at the very end of payment flow. It provides payment response or a descriptive error with more details in the payment response |