PaymentSDK
Mobile payment SDK
|
Defines ApplePay payment method. More...
#import <WDApplePayManagedPayment.h>
Public Instance Methods | |
(nullable instancetype) | - initWithMerchant:andCountry: |
initialize object More... | |
(nullable instancetype) | - initWithPayment:summaryItems:currency:transactionType: |
Initializes payment object with parameters gathered via PKPaymentAuthorizationViewController. More... | |
(nullable instancetype) | - init |
Public Instance Methods inherited from WDPayment | |
(nullable WDNotification *) | - notificationForState: |
Returns the notification for transaction state. More... | |
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: |
Properties | |
NSString * | appleMerchantID |
Apple Merchant ID. More... | |
WDCountry | merchantCountry |
Merchant's Country. More... | |
BOOL | requiredBillingAddress |
prompt user for billing address More... | |
BOOL | requiredShippingAddress |
prompt user for shipping address More... | |
NSSet< NSNumber * > * | supportedCardBrands |
Set of supported card brands. More... | |
Properties inherited from WDPayment | |
NSString * | requestSignature |
Authorize client to process the transaction. More... | |
NSDate * | requestTimestamp |
Date when requestSignature was generated. More... | |
NSString * | signature |
2nd generation signature. Authorize client to process the transaction. checkPayment works only with this signature. More... | |
NSString * | merchantAccountID |
Unique identifier assigned for every Merchant Account. More... | |
NSString * | merchantAccountResolverCategory |
Category used by frontend merchant to resolve internal merchant for processing payment. More... | |
NSString * | requestID |
Unique identifier associated with the transaction, which is created by the merchant. More... | |
NSDecimalNumber * | amount |
The only amount that accompanies the transaction when it is created and/or requested. More... | |
WDCurrency | amountCurrency |
Currency in which the transaction is processed. More... | |
WDTransactionType | transactionType |
Determines transaction processing behaviour. More... | |
WDCustomerData * | accountHolder |
Customer's account information. More... | |
WDCustomerData * | shipping |
Customer's shipping information. More... | |
WDOrder * | order |
Customer's order information. More... | |
NSArray< WDNotification * > * | notifications |
Notifications configuration. More... | |
NSString * | IPAddress |
The IP Address of the Customer as recorded by the entity receiving the Transaction Attempt from the Customer. More... | |
WDLocale | locale |
Defines the user's language and any special variant preferences that the user wants to see in their user interface. More... | |
NSString * | parentTransactionID |
transaction identifier of previous transaction gathered by [WDPaymentResponse transactionIdentifier] More... | |
Additional Inherited Members | |
Public Class Methods inherited from NSObject | |
(id) | + alloc |
(Class) | + class |
(void) | + initialize |
(void) | + load |
(id) | + new |
Defines ApplePay payment method.
WDClient handles PKPaymentAuthorizationViewController. As it does not support complex use cases (shipping address selection, ...) it is intended for simple payments.I case of complex use cases handle PKPaymentAuthorizationViewController by your own and use WDApplePayPayment
- (nullable instancetype) init |
- (nullable instancetype) initWithMerchant: | (nonnull NSString *) | appleMerchantID | |
andCountry: | (WDCountry) | merchantCountry | |
initialize object
appleMerchantID | Apple Merchant ID |
merchantCountry | merchant's country |
- (nullable instancetype) initWithPayment: | (nonnull PKPayment *) | payment | |
summaryItems: | (nonnull NSArray< PKPaymentSummaryItem * > *) | summaryItems | |
currency: | (WDCurrency) | currency | |
transactionType: | (WDTransactionType) | transactionType | |
Initializes payment object with parameters gathered via PKPaymentAuthorizationViewController.
payment | PKPayment object gathered via PKPaymentAuthorizationViewController |
summaryItems | summaryItems gathered via PKPaymentAuthorizationViewController |
currency | currency code. Supported codes: "GBP", ""USD" |
transactionType | transaction type. Supported transaction types: WDTransactionTypeAuthorization, WDTransactionTypeCaptureAuthorization, WDTransactionTypePurchase, WDTransactionTypeReferencedAuthorization, WDTransactionTypeReferencedPurchase, WDTransactionTypeRefundCapture, WDTransactionTypeRefundPurchase, WDTransactionTypeVoidAuthorization |
Implements WDApplePayPayment.
|
readwritenonatomiccopy |
Apple Merchant ID.
|
readwritenonatomicassign |
Merchant's Country.
|
readwritenonatomicassign |
prompt user for billing address
|
readwritenonatomicassign |
prompt user for shipping address
Set of supported card brands.
If supportedCardBrands is set SDK call canMakePayment and returns error WDErrorCodeUnsupportedPaymentMethod if card is unavailable. Set can contain NSNumbers with WDCardBrand values. Example:
payment.supportedCardBrands = [NSSet setWithObjects:@(WDCardBrandAmex), @(WDCardBrandMasterCard), @(WDCardBrandVisa), nil];