PaymentSDK
Mobile payment SDK
WDClient Class Reference

Payment processing client. More...

#import <WDClient.h>

+ Inheritance diagram for WDClient:
+ Collaboration diagram for WDClient:

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
 

Detailed Description

Payment processing client.

Method Documentation

- (void) checkPayment: (nonnull WDPayment *)  payment
withCompletion: (nonnull WDCompletionBlock completionBlock 
- (nullable instancetype) init
- (nullable instancetype) initWithEnvironment: (WDEnvironment environment

It initilizes client for processing payments.

Parameters
environmentEnvironment for processing payments
Returns
An initialized object, or nil if an object could not be created for some reason that would not result in an exception
- (nullable instancetype) initWithEnvironment: (WDEnvironment environment
error: (NSError *_Nullable __autoreleasing *_Nullable)  error 

It initilizes client for processing payments.

Parameters
environmentEnvironment for processing payments
errorError contains code WDErrorCode
Returns
An initialized object, or nil if an object could not be created for some reason that would not result in an exception
- (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

Parameters
paymentdefines payment process
completionBlockwill 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

Parameters
paymentdefines payment process
stylecan be defined by WDBaseStyle, WDCardStyle, WDSEPAStyle
completionBlockwill be called at the very end of payment flow. It provides payment response or a descriptive error with more details in the payment response