Integration and Testing

Authorize.Net API questions and help with your payment integration.

Reply
Member
Posts: 1
Registered: ‎11-27-2015

charge credit card if billing address zip matches

Hi,

 

I am using sandbox account. i want to charge a credit card which has valid card informations and 

a valid blling address zip code. 

like if user provides valid card informations  and valid address but invalid zip code then transiction should not be approved. 

 

for Reques i am using this xml 

 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<createTransactionRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
<merchantAuthentication>
<name>xxxxxx</name>
<transactionKey>xxxx</transactionKey>
</merchantAuthentication>
<transactionRequest>
<transactionType>authOnlyTransaction</transactionType>
<amount>1.000</amount>
<payment>
<creditCard>
<cardNumber>5424000000000015</cardNumber>
<expirationDate>1220</expirationDate>
<cardCode>999</cardCode>
</creditCard>
</payment>
<billTo>
<firstName>firstname</firstName>
<lastName>lastname</lastName>
<address>some addrss</address>
<city>somecity</city>
<state>somestate</state>
<zip>invlidzip</zip>
<country>country</country>
</billTo>
</transactionRequest>
</createTransactionRequest>

 

Posts: 2,765
Topics: 57
Kudos: 270
Blog Posts: 67
Registered: ‎12-05-2011

Re: charge credit card if billing address zip matches

Hello @ramashankar8

 

Use the testing guide to generate specific transactions responses.