Quick Start
About Xplor Pay Mobile EMV SDK
About VP3300 Mobile Card Reader
Prerequisites
2
3
Process the payment in your iOS app
ClearentVP3300Config *config = [[ClearentVP3300Config alloc] init];
[config setPublicKey:publicKey];
[config setClearentBaseUrl:baseURL];
config.contactAutoConfiguration = false;
config.contactlessAutoConfiguration = false;
config.contactless = true;
clearentVP3300 = [[Clearent_VP3300 alloc] initWithConnectionHandling:self
clearentVP3300Configuration:config];
clearentManualEntry = [[ClearentManualEntry alloc] init];
[clearentManualEntry setClearentBaseUrl:baseURL];
[clearentManualEntry setPublicKey:publicKey];ClearentPayment *payment = [[ClearentPayment alloc] init];
[payment setAmount:theAmount];
payment.amtOther = 0;
payment.type = 0; // Sale
payment.timeout = 10;
payment.tags = nil;
payment.fallback = true;
payment.forceOnline = false;ClearentResponse *response = [clearentVP3300 startTransaction:payment
clearentConnection:connection];
if (response.responseType != RESPONSE_SUCCESS) {
// Notify user transaction could not be started
}- (void)successTransactionToken:(ClearentTransactionToken *)token {
// Send the encrypted JWT to the Mobile Payments API
// POST /rest/v2/mobile/transactions/sale
}Last updated
Was this helpful?

