WePay iOS SDK  7.0.0-prerelease-1
WPAuthorizationInfo Class Reference

#import <WPAuthorizationInfo.h>

Inheritance diagram for WPAuthorizationInfo:
WPPaymentToken

Instance Methods

(instancetype) - initWithAmount:currencyCode:transactionToken:tokenId:
 
(instancetype) - initWithId:
 

Properties

NSDecimalNumber * amount
 
NSString * currencyCode
 
NSString * transactionToken
 
NSString * tokenId
 

Detailed Description

A WPAuthorizationInfo represents authorization information that was obtained from the user's EMV card and is stored on WePay's servers. This information can be used to complete the payment transaction via WePay's web APIs.

Method Documentation

◆ initWithAmount:currencyCode:transactionToken:tokenId:()

- (instancetype) initWithAmount: (NSDecimalNumber *)  amount
currencyCode: (NSString *)  currencyCode
transactionToken: (NSString *)  transactionToken
tokenId: (NSString *)  tokenId 

Initializes a WPAuthorizationInfo with the info provided.

Parameters
amountThe amount that was authorized.
currencyCodeThe currency code that the amount is specified in.
transactionTokenThe transaction token that certifies the transaction
tokenIdThe ID of the payment token.
Returns
A WPAuthorizationInfo object initialized with the info provided.

◆ initWithId:()

- (instancetype) initWithId: (NSString *)  tokenId

Initialzes a WPPaymentToken with the Id provided.

Parameters
tokenIdThe Id of the token.
Returns
A WPPaymentToken object initialized with the Id provided.

Property Documentation

◆ amount

- (NSDecimalNumber*) amount
readnonatomicstrong

The amount that was authorized.

◆ currencyCode

- (NSString*) currencyCode
readnonatomicstrong

The currency code that the amount is specified in.

◆ tokenId

- (NSString*) tokenId
readnonatomicstronginherited

The token's id.

◆ transactionToken

- (NSString*) transactionToken
readnonatomicstrong

The transaction token that certifies the transaction.


The documentation for this class was generated from the following file: