WePay iOS SDK  3.0.0
 All Classes Files Functions Variables Enumerations Enumerator Properties Macros
<WPCardReaderDelegate> Protocol Reference

#import <WePay.h>

Inheritance diagram for <WPCardReaderDelegate>:

Instance Methods

(void) - didReadPaymentInfo:
 
(void) - didFailToReadPaymentInfoWithError:
 
(void) - cardReaderDidChangeStatus:
 

Detailed Description

This delegate protocol has to be adopted by any class that handles Card Reader responses.

Method Documentation

- (void) cardReaderDidChangeStatus: (id)  status

Called when the card reader changes status.

Parameters
statusCurrent status of the card reader, one of (kWPCardReaderStatusNotConnected, kWPCardReaderStatusConnected, kWPCardReaderStatusWaitingForSwipe, kWPCardReaderStatusSwipeDetected, kWPCardReaderStatusTokenizing, kWPCardReaderStatusStopped).
- (void) didFailToReadPaymentInfoWithError: (NSError *)  error

Called when an error occurs while reading a card.

Parameters
errorThe error which caused the failure.
- (void) didReadPaymentInfo: (WPPaymentInfo *)  paymentInfo

Called when payment info is successfully obtained from a card.

Parameters
paymentInfoThe payment info.

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