cancel
Showing results for 
Search instead for 
Did you mean: 

Does not match billing address of cardholder

Hello all.

 

I am mobile developer.

 

Now i am using inperson-sdk for ios and android.

 

But i  have not experience this sdk.

 

 

CreditCardType *creditCardType = [CreditCardType creditCardType];
creditCardType.cardNumber = @"xxxxxxxxxxxxxxxx";
creditCardType.cardCode = @"xxx";
creditCardType.expirationDate = @"1222";

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 = @"AuthCaptureProduct";
lineItem.itemDescription = @"AuthCaptureProductDescription";
lineItem.itemQuantity = @"1";
lineItem.itemPrice = [NSString stringWithFormat:@"%d", [self randomDigit]];
lineItem.itemID = @"1";

TransactionRequestType *requestType = [TransactionRequestType transactionRequest];
requestType.lineItems = [NSMutableArray arrayWithObject:lineItem];
requestType.amount = lineItem.itemPrice;
requestType.payment = paymentType;
requestType.tax = extendedAmountTypeTax;
requestType.shipping = extendedAmountTypeShipping;

CreateTransactionRequest *request = [CreateTransactionRequest createTransactionRequest];
request.transactionRequest = requestType;
request.transactionType = AUTH_CAPTURE;
request.anetApiRequest.merchantAuthentication.mobileDeviceId = deviceId;
request.anetApiRequest.merchantAuthentication.sessionToken = self.loginResponse.sessionToken;

AuthNet *an = [AuthNet getInstance];
[an setDelegate:self];
[an purchaseWithRequest:request];

 

i have used this code.

 

And i get Does not match billing address of cardholder error.

 

The transaction has been declined because of an AVS mismatch. The address provided does not match billing address of cardholder.

Let me know how to fix this issue.

 

Thanks.

 

andros
Member
1 REPLY 1

Hi,

 

It doesn't look like you're actually providing the address. If you don't want to provide the address, you'll likely want to go into the settings in the merchant interface on our web site and make sure the fraud screening settings are set to not decline transactions where the address doesn't match.

Aaron
All Star