PaymentSDK
Mobile payment SDK
WDCardPayment Class Reference

Defines Card payment method. More...

#import <WDCardPayment.h>

+ Inheritance diagram for WDCardPayment:
+ Collaboration diagram for WDCardPayment:

Public Instance Methods

(nullable instancetype) - initWithAmount:amountCurrency:transactionType:
 Initialize Car payment object. 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

WDAttempt attemptThreeD
 Indicates that the Transaction Request should proceed with the 3D Secure workflow if the [Card Holder] is enrolled. Otherwise, the transaction proceeds without 3D Secure. More...
 
BOOL recurring
 Mark payment as recurring. More...
 
BOOL requireSecurityCode
 Prompt [Card Holder] for security code, in case of referenced transactions. More...
 
WDCardTokentoken
 Tokenized card data gathered by previous transaction [WDPaymentResponse cardToken]. More...
 
WDSubMerchantInfosubMerchantInfo
 Info about particular merchant. 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 Card payment method.

Method Documentation

- (nullable instancetype) init
- (nullable instancetype) initWithAmount: (nonnull NSDecimalNumber *)  amount
amountCurrency: (WDCurrency amountCurrency
transactionType: (WDTransactionType transactionType 

Initialize Car payment object.

Parameters
amountAmount that accompanies the transaction
amountCurrencyCurrency in which the transaction is processed
transactionTypeWDTransactionType transaction type
Returns
initialized object or nil

Property Documentation

- (WDAttempt) attemptThreeD
readwritenonatomicassign

Indicates that the Transaction Request should proceed with the 3D Secure workflow if the [Card Holder] is enrolled. Otherwise, the transaction proceeds without 3D Secure.

Default value is YES. In case of referenced transactions (WDTransactionTypeCaptureAuthorization, WDTransactionTypeReferencedAuthorization, WDTransactionTypeReferencedPurchase), it is ignored.

- (BOOL) recurring
readwritenonatomicassign

Mark payment as recurring.

Default value is NO.

- (BOOL) requireSecurityCode
readwritenonatomicassign

Prompt [Card Holder] for security code, in case of referenced transactions.

Default value is NO.

- (WDSubMerchantInfo*) subMerchantInfo
readwritenonatomicstrong

Info about particular merchant.

It is optional.

- (WDCardToken*) token
readwritenonatomicstrong

Tokenized card data gathered by previous transaction [WDPaymentResponse cardToken].

set [WDCardToken tokenID] if you want to use the same card as in previous transaction. In case of transaction referenced by parentTransactionID and security code is required set [WDCardToken maskedAccountNumber] to help user with security code typing