<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic in person ios sdk . Invalid input error code 18 in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/in-person-ios-sdk-Invalid-input-error-code-18/m-p/67917#M41216</link>
    <description>&lt;P&gt;Hey&lt;/P&gt;&lt;P&gt;I was able to login successfully, however when i try to charge an account, i keep getting&lt;BR /&gt;&lt;STRONG&gt;Error Code&lt;/STRONG&gt;&lt;BR /&gt;Transaction failed, invalid input.&lt;BR /&gt;Error Code 18&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Code&lt;/STRONG&gt;&lt;BR /&gt;-(void)mobileDeviceLoginSucceeded:(MobileDeviceLoginResponse *)response{&lt;BR /&gt;NSString *sessionToken=[response sessionToken];&lt;BR /&gt;KioskUtils *myUtils=[[KioskUtils alloc]init];&lt;BR /&gt;NSMutableDictionary *tableDict=[[[NSUserDefaults standardUserDefaults] objectForKey:@"ticketData"] mutableCopy];&lt;BR /&gt;NSString *totalStr=@"0.01";&lt;BR /&gt;NSString *tipAmtStr=@"0.01";&lt;BR /&gt;NSString *taxAmtStr=@"0.00";&lt;BR /&gt;AnetEMVManager *manager= [AnetEMVManager initWithCurrecyCode:@"USD" terminalID:@"xxxxxx" skipSignature:TRUE showReceipt:FALSE];&lt;BR /&gt;[manager setLoggingEnabled:TRUE];&lt;BR /&gt;[manager setTerminalMode:AnetEMVModeInsertOrSwipe];&lt;BR /&gt;LineItemType *lineItem=[LineItemType lineItem];&lt;BR /&gt;[lineItem setItemName:@"Test"];&lt;BR /&gt;[lineItem setItemID:@"1"];&lt;BR /&gt;[lineItem setItemQuantity:@"1"];&lt;BR /&gt;AnetEMVTransactionRequest *request=[AnetEMVTransactionRequest transactionRequest];&lt;BR /&gt;NSMutableArray *lineItems=[NSMutableArray new];&lt;BR /&gt;[lineItems addObject:lineItem];&lt;BR /&gt;[request setLineItems:lineItems];&lt;BR /&gt;ANetApiRequest *apiRequest=[ANetApiRequest anetApiRequest];&lt;BR /&gt;MerchantAuthenticationType *auth=[MerchantAuthenticationType merchantAuthentication];&lt;BR /&gt;[auth setSessionToken:sessionToken];&lt;BR /&gt;[auth setMobileDeviceId:[myUtils getMacAddress]];&lt;/P&gt;&lt;PRE&gt;[apiRequest setMerchantAuthentication:auth];
[request setAnetApiRequest:apiRequest];
int r = arc4random_uniform(1000000000) + 1;
OrderType *orderType=[OrderType order];
[orderType setInvoiceNumber:[NSString stringWithFormat:@"%d",r]];
[orderType setOrderDescription:@"test description"];
[request setOrder:orderType];
[request setAmount:totalStr];
ExtendedAmountType *tip=[ExtendedAmountType extendedAmountType];
[tip setAmount:tipAmtStr];
[tip setName:@"tip"];
ExtendedAmountType *tax=[ExtendedAmountType extendedAmountType];
[tax setName:@"tax"];
[tax setAmount:taxAmtStr];
//[request setTip:tip];
//[request setTax:tax];
[request setEmvTransactionType:EMVTransactionType_Payment];
[manager setConnectionMode:AnetEMVConnectionModeBluetooth];&lt;/PRE&gt;&lt;P&gt;[manager startQuickChipWithTransactionRequest:request forPaperReceiptCase:false presentingViewController:self completionBlock:^(AnetEMVTransactionResponse * _Nullable response, AnetEMVError * _Nullable error) {&lt;BR /&gt;if([response isTransactionSuccessful]){&lt;BR /&gt;................&lt;BR /&gt;}&lt;BR /&gt;}else{&lt;BR /&gt;NSLog(@"failed ..");&lt;BR /&gt;}&lt;BR /&gt;} andCancelActionBlock:^{&lt;BR /&gt;NSLog(@"failed ..");&lt;BR /&gt;}];&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;</description>
    <pubDate>Wed, 05 Jun 2019 15:17:53 GMT</pubDate>
    <dc:creator>venkateshc75</dc:creator>
    <dc:date>2019-06-05T15:17:53Z</dc:date>
    <item>
      <title>in person ios sdk . Invalid input error code 18</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/in-person-ios-sdk-Invalid-input-error-code-18/m-p/67917#M41216</link>
      <description>&lt;P&gt;Hey&lt;/P&gt;&lt;P&gt;I was able to login successfully, however when i try to charge an account, i keep getting&lt;BR /&gt;&lt;STRONG&gt;Error Code&lt;/STRONG&gt;&lt;BR /&gt;Transaction failed, invalid input.&lt;BR /&gt;Error Code 18&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Code&lt;/STRONG&gt;&lt;BR /&gt;-(void)mobileDeviceLoginSucceeded:(MobileDeviceLoginResponse *)response{&lt;BR /&gt;NSString *sessionToken=[response sessionToken];&lt;BR /&gt;KioskUtils *myUtils=[[KioskUtils alloc]init];&lt;BR /&gt;NSMutableDictionary *tableDict=[[[NSUserDefaults standardUserDefaults] objectForKey:@"ticketData"] mutableCopy];&lt;BR /&gt;NSString *totalStr=@"0.01";&lt;BR /&gt;NSString *tipAmtStr=@"0.01";&lt;BR /&gt;NSString *taxAmtStr=@"0.00";&lt;BR /&gt;AnetEMVManager *manager= [AnetEMVManager initWithCurrecyCode:@"USD" terminalID:@"xxxxxx" skipSignature:TRUE showReceipt:FALSE];&lt;BR /&gt;[manager setLoggingEnabled:TRUE];&lt;BR /&gt;[manager setTerminalMode:AnetEMVModeInsertOrSwipe];&lt;BR /&gt;LineItemType *lineItem=[LineItemType lineItem];&lt;BR /&gt;[lineItem setItemName:@"Test"];&lt;BR /&gt;[lineItem setItemID:@"1"];&lt;BR /&gt;[lineItem setItemQuantity:@"1"];&lt;BR /&gt;AnetEMVTransactionRequest *request=[AnetEMVTransactionRequest transactionRequest];&lt;BR /&gt;NSMutableArray *lineItems=[NSMutableArray new];&lt;BR /&gt;[lineItems addObject:lineItem];&lt;BR /&gt;[request setLineItems:lineItems];&lt;BR /&gt;ANetApiRequest *apiRequest=[ANetApiRequest anetApiRequest];&lt;BR /&gt;MerchantAuthenticationType *auth=[MerchantAuthenticationType merchantAuthentication];&lt;BR /&gt;[auth setSessionToken:sessionToken];&lt;BR /&gt;[auth setMobileDeviceId:[myUtils getMacAddress]];&lt;/P&gt;&lt;PRE&gt;[apiRequest setMerchantAuthentication:auth];
[request setAnetApiRequest:apiRequest];
int r = arc4random_uniform(1000000000) + 1;
OrderType *orderType=[OrderType order];
[orderType setInvoiceNumber:[NSString stringWithFormat:@"%d",r]];
[orderType setOrderDescription:@"test description"];
[request setOrder:orderType];
[request setAmount:totalStr];
ExtendedAmountType *tip=[ExtendedAmountType extendedAmountType];
[tip setAmount:tipAmtStr];
[tip setName:@"tip"];
ExtendedAmountType *tax=[ExtendedAmountType extendedAmountType];
[tax setName:@"tax"];
[tax setAmount:taxAmtStr];
//[request setTip:tip];
//[request setTax:tax];
[request setEmvTransactionType:EMVTransactionType_Payment];
[manager setConnectionMode:AnetEMVConnectionModeBluetooth];&lt;/PRE&gt;&lt;P&gt;[manager startQuickChipWithTransactionRequest:request forPaperReceiptCase:false presentingViewController:self completionBlock:^(AnetEMVTransactionResponse * _Nullable response, AnetEMVError * _Nullable error) {&lt;BR /&gt;if([response isTransactionSuccessful]){&lt;BR /&gt;................&lt;BR /&gt;}&lt;BR /&gt;}else{&lt;BR /&gt;NSLog(@"failed ..");&lt;BR /&gt;}&lt;BR /&gt;} andCancelActionBlock:^{&lt;BR /&gt;NSLog(@"failed ..");&lt;BR /&gt;}];&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 15:17:53 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/in-person-ios-sdk-Invalid-input-error-code-18/m-p/67917#M41216</guid>
      <dc:creator>venkateshc75</dc:creator>
      <dc:date>2019-06-05T15:17:53Z</dc:date>
    </item>
  </channel>
</rss>

