Reply
Member
Posts: 3
Registered: ‎10-07-2013
Accepted Solution

Authorize.net TransactionResponse error in iOS

I have created the testing transaction request using purchaseWithRequest, always i am getting error

Transactions of this market type cannot be processed on this system

My Code:

-(void) createTransaction {AuthNet*an =[AuthNet getInstance];[an setDelegate:self];CreditCardType*creditCardType =[CreditCardType creditCardType];    creditCardType.cardNumber =@"4007000000027";    creditCardType.cardCode =@"100";    creditCardType.expirationDate =@"0215";PaymentType*paymentType =[PaymentType paymentType];    paymentType.creditCard = creditCardType;ExtendedAmountType*extendedAmountTypeTax =[ExtendedAmountType extendedAmountType];    extendedAmountTypeTax.amount =@"0";    extendedAmountTypeTax.name =@"Tax";ExtendedAmountType*extendedAmountTypeShipping =[ExtendedAmountType extendedAmountType];    extendedAmountTypeShipping.amount =@"0";    extendedAmountTypeShipping.name =@"Shipping";LineItemType*lineItem =[LineItemType lineItem];    lineItem.itemName =@"Soda";    lineItem.itemDescription =@"Soda";    lineItem.itemQuantity =@"1";    lineItem.itemPrice =@"1.00";    lineItem.itemID =@"1";TransactionRequestType*requestType =[TransactionRequestType transactionRequest];    requestType.lineItems =[NSMutableArray arrayWithObject:lineItem];    requestType.amount =@"1.00";    requestType.payment = paymentType;    requestType.tax = extendedAmountTypeTax;    requestType.shipping = extendedAmountTypeShipping;CreateTransactionRequest*request =[CreateTransactionRequest createTransactionRequest];    request.transactionRequest = requestType;    request.transactionType = AUTH_ONLY;    request.anetApiRequest.merchantAuthentication.mobileDeviceId =[[Utility getDeviceID]     stringByReplacingOccurrencesOfString:@"-" withString:@"_"];    request.anetApiRequest.merchantAuthentication.sessionToken = sessionToken;[an purchaseWithRequest:request];}

Which give call back to this delegate method,

- (void) requestFailed:(AuthNetResponse *)response { // Handle a failed request // getting callback to this method }

-(void) connectionFailed:(AuthNetResponse*)response {// Handle a failed connection}-(void) paymentSucceeded:(CreateTransactionResponse*) response {// Handle payment success}

Note: my mobileDeviceRegistrationSucceeded and mobileDeviceLoginSucceeded, only purchaseWithRequestFailed

TransactionResponse.errors =("Error.errorCode = 87\nError.errorText = Transactions of this market type cannot be processed on this system.\n")

Accepted Solutions
Highlighted
Solution
Accepted by topic author sulekha123
‎08-21-2015 01:58 AM
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: Authorize.net TransactionResponse error in iOS


All Replies
Highlighted
Solution
Accepted by topic author sulekha123
‎08-21-2015 01:58 AM
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: Authorize.net TransactionResponse error in iOS

Member
Posts: 3
Registered: ‎10-07-2013

Re: Authorize.net TransactionResponse error in iOS

Thank you it solved my problem, There is no option to change Card Not Present. Instead of creating new account for changing this setting..