WePay iOS SDK  7.0.0-prerelease-1
<WPTokenizationDelegate > Protocol Reference
Inheritance diagram for <WPTokenizationDelegate >:

Instance Methods

(void) - paymentInfo:didTokenize:
 
(void) - paymentInfo:didFailTokenization:
 
(void) - insertPayerEmailWithCompletion:
 

Method Documentation

◆ insertPayerEmailWithCompletion:()

- (void WPTokenizationDelegate) insertPayerEmailWithCompletion: (void(^)(NSString *email))  completion
optional

Optionally called so that an email address can be provided before a transaction is authorized. If this method is implemented, the transaction cannot proceed until the completion block is executed. Examples: completion("api@w.nosp@m.epay.nosp@m..com"); completion(nil);

Parameters
completionThe block to be executed with the payer's email address.
emailThe payer's email address.

◆ paymentInfo:didFailTokenization:()

- (void WPTokenizationDelegate) paymentInfo: (WPPaymentInfo *)  paymentInfo
didFailTokenization: (NSError *)  error 

Called when a tokenization call fails.

Parameters
paymentInfoThe payment info that failed tokenization.
errorThe error which caused the failure.

◆ paymentInfo:didTokenize:()

- (void WPTokenizationDelegate) paymentInfo: (WPPaymentInfo *)  paymentInfo
didTokenize: (WPPaymentToken *)  paymentToken 

Called when a tokenization call succeeds.

Parameters
paymentInfoThe payment info that was tokenized.
paymentTokenThe payment token representing the payment info.

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