cancel
Showing results for 
Search instead for 
Did you mean: 

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>

 

ramashankar8
Member
1 REPLY 1

Hello @ramashankar8

 

Use the testing guide to generate specific transactions responses.

RichardH
Administrator Administrator
Administrator