PaymentSDK
Mobile payment SDK
WDApplePayManagedPayment Class Reference

Defines ApplePay payment method. More...

#import <WDApplePayManagedPayment.h>

+ Inheritance diagram for WDApplePayManagedPayment:
+ Collaboration diagram for WDApplePayManagedPayment:

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

NSStringappleMerchantID
 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
NSStringrequestSignature
 Authorize client to process the transaction. More...
 
NSDaterequestTimestamp
 Date when requestSignature was generated. More...
 
NSStringsignature
 2nd generation signature. Authorize client to process the transaction. checkPayment works only with this signature. More...
 
NSStringmerchantAccountID
 Unique identifier assigned for every Merchant Account. More...
 
NSStringmerchantAccountResolverCategory
 Category used by frontend merchant to resolve internal merchant for processing payment. More...
 
NSStringrequestID
 Unique identifier associated with the transaction, which is created by the merchant. More...
 
NSDecimalNumberamount
 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...
 
WDCustomerDataaccountHolder
 Customer's account information. More...
 
WDCustomerDatashipping
 Customer's shipping information. More...
 
WDOrderorder
 Customer's order information. More...
 
NSArray< WDNotification * > * notifications
 Notifications configuration. More...
 
NSStringIPAddress
 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...
 
NSStringparentTransactionID
 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
 

Detailed Description

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

Method Documentation

- (nullable instancetype) init
- (nullable instancetype) initWithMerchant: (nonnull NSString *)  appleMerchantID
andCountry: (WDCountry merchantCountry 

initialize object

Parameters
appleMerchantIDApple Merchant ID
merchantCountrymerchant's country
Returns
initialized object
- (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.

Parameters
paymentPKPayment object gathered via PKPaymentAuthorizationViewController
summaryItemssummaryItems gathered via PKPaymentAuthorizationViewController
currencycurrency code. Supported codes: "GBP", ""USD"
transactionTypetransaction type. Supported transaction types: WDTransactionTypeAuthorization, WDTransactionTypeCaptureAuthorization, WDTransactionTypePurchase, WDTransactionTypeReferencedAuthorization, WDTransactionTypeReferencedPurchase, WDTransactionTypeRefundCapture, WDTransactionTypeRefundPurchase, WDTransactionTypeVoidAuthorization
Returns
initialized object with payment data

Implements WDApplePayPayment.

Property Documentation

- (NSString*) appleMerchantID
readwritenonatomiccopy

Apple Merchant ID.

- (WDCountry) merchantCountry
readwritenonatomicassign

Merchant's Country.

- (BOOL) requiredBillingAddress
readwritenonatomicassign

prompt user for billing address

- (BOOL) requiredShippingAddress
readwritenonatomicassign

prompt user for shipping address

- (NSSet<NSNumber *>*) supportedCardBrands
readwritenonatomiccopy

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];