Setting up the iOS framework in your Objective-C app
Last updated
Was this helpful?
Last updated
Was this helpful?
To set up the iOS framework for your Objective-C app:
Import the iOS framework header into your code.
Add the Clearent_Public_IDTech_VP3300_Delegate
interface to your code.
Add the ClearentManualEntryDelegate
interface as a backup if the card reader fails to read the card.
Add the successTransactionToken
method to get a JSON Web Token (JWT) that represents the credit card and the current transaction request.
The iOS Framework calls the successTransactionToken
method when tokenization is successful after reading the card data, either by swiping or inserting the card with an EMV chip. You can submit this token to the mobile payment gateway to process the payment.
Add the clearentFeedback
method to return messages that guide customers during their interaction with the card reader.
Add the deviceConnected
method to check if the card reader is connected to your iOS app.
Add the deviceDisconnected
method to check if the card reader is disconnected from your iOS app.
Add the following framework objects to interact with the card reader.