WePay iOS SDK
3.0.0
|
#import <WePay.h>
Instance Methods | |
(void) | - didReadPaymentInfo: |
(void) | - didFailToReadPaymentInfoWithError: |
(void) | - cardReaderDidChangeStatus: |
This delegate protocol has to be adopted by any class that handles Card Reader responses.
- (void) cardReaderDidChangeStatus: | (id) | status |
Called when the card reader changes status.
status | Current 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.
error | The error which caused the failure. |
- (void) didReadPaymentInfo: | (WPPaymentInfo *) | paymentInfo |
Called when payment info is successfully obtained from a card.
paymentInfo | The payment info. |