Setting Up Clearent's iOS Framework for your Objective-C iOS App

  • To import the framework header:

#import <ClearentIdtechIOSFramework/ClearentIdtechIOSFramework.h>
  • To implement the public delegate:

@interface ViewController : UIViewController<UIAlertViewDelegate,Clearent_Public_IDTech_VP3300_Delegate, UIActionSheetDelegate,MFMailComposeViewControllerDelegate>
  • To implement the ClearentManualEntryDelegate. Use this code in case the reader cannot interact with the card.

@interface ViewController : UIViewController<UIAlertViewDelegate,Clearent_Public_IDTech_VP3300_Delegate, UIActionSheetDelegate,MFMailComposeViewControllerDelegate>,ClearentManualEntryDelegate
  • To implement the successfulTransactionToken method. This method returns a token that represents the credit card and the current transaction request. A payment transaction processes using the returned token. The Clearent iOS Framework calls the successfulTransactionToken method when tokenization is successful after reading the card data, either by swiping or inserting the card with an EMV chip.

- (void)successTransactionToken:(ClearentTransactionToken *)clearentTransactionToken;
  • To view the errors. The feedback callback returns different types of messages. Some messages instruct your customers when they interact with the card reader to start a payment transaction. Other messages provide information and errors to inform your customers.

- (void)feedback:(ClearentFeedback *)clearentFeedback;
  • To view the status whether the device connected to your iOS app:

-(void) deviceConnected;
  • To view the status whether the device disconnected to your iOS app:

-(void) deviceDisconnected;
  • To define the framework objects for interaction with the card reader:

Clearent_VP3300 *clearentVP3300;
ClearentManualEntry *clearentManualEntry;

Last updated