cancel
Showing results for 
Search instead for 
Did you mean: 

sample code for avs fraud filter

What c# sample code can you refer e to to run transactions through the AVS/CCV fraud filter?  

 

It seems the documentation is somewhat minimal, can someone fill in the gaps for those of us who have never done payment transactions before?

 

Thanks.

cltw
Contributor
5 REPLIES 5

Hello?

cltw
Contributor

Hello @cltw

 

I updated the issue you reported on GitHub to add examples for postal code and address to see how to include those fields in a payment transaction.

 

Richard

 

 

 

I've seen the response "It does it at the same time.

http://www.authorize.net/resources/howitworksdiagram/

When it process with the buyer bank, it will do the validation and return the result, with the response of the transaction."

 

However, if the chargecreditcard sample code available never sends the zip and address

https://github.com/AuthorizeNet/sample-code-csharp/blob/master/PaymentTransactions/ChargeCreditCard....

 

Are developers supposed to send authorization separately, using the two classes below instead?

https://github.com/AuthorizeNet/sample-code-csharp/blob/master/PaymentTransactions/AuthorizeCreditCa...

https://github.com/AuthorizeNet/sample-code-csharp/blob/master/PaymentTransactions/CapturePreviously...

 

OR compare with this fellow's code which uses AIM and sends address, zip, etc to an api.  Is it still a valid method anymore, and what is the equivelent version in the newer sample code?

http://thejackol.com/2004/10/18/authorizenet-integration-using-c-aspnet/

 

 

I would love it if someone filled in the gaps for me.  

 

Thanks

 

Hello @cltw

 

The sample code you reference doesn't have the specific use case you are looking for.  If you want to see how this works, go over to the API Reference under payment transactions where you can submit test transactions, include your sample addresses and zipcode to generate declines and avs response to your heart's desire.

 

Richard

I'm also in the same boat. I don't see any sample code of how to actually send the customer billing information to be processed. On the example page that you show- we see the following in the XML code:

 

<customer>
<id>99999456654</id>
</customer>
<billTo>
<firstName>Ellen</firstName>
<lastName>Johnson</lastName>
<company>Souveniropolis</company>
<address>14 Main Street</address>
<city>Pecan Springs</city>
<state>TX</state>
<zip>46280</zip>
<country>USA</country>
</billTo>

 

But how do I set that up in C# to actually create the Billto information? There are no code samples where the AVS is actually receiving the Billto information and using it. 

 

Thanks.