8 posts / 0 new
Last post
theodorebellas5323
AVS Response

Hello,

We aren't getting an AVS response from your test API when we submit the required address information, regardless of whether or not we start the address off with an AVS code. Can you please provide us with the ability to test your AVS checks? Thanks!


rohitrajagopal3538
Re: AVS Response

Hi Theodore,

Here is an example payload that will have a AVS response of "N". In order to simulate an AVS response in the demo/test environment, set the first character of the address value to the desired AVS response codes.

 

{
  "merchant_ref": "Astonishing-Sale",
  "transaction_type": "authorize",
  "method": "credit_card",
  "amount": "1299",
  "currency_code": "USD",
  "credit_card": {
    "type": "visa",
    "cardholder_name": "John Smith",
    "card_number": "4788250000028291",
    "exp_date": "1020",
    "cvv": "123"
  },
  "billing_address": {
            "street": "N123 Main St",
            "city": "SAN JOSE",
            "state_province": "CA",
            "country": "US",
            "zip_postal_code": "95136"
            
   }
}


theodorebellas5323
Re: AVS Response

Yes, I know this- we're doing as such and still aren't getting an AVS response.


rohitrajagopal3538
Re: AVS Response

Hi Theodore,

I just tested it and it works. Please start by testing the payload in the sandbox page - https://developer.payeezy.com/creditcardpayment/apis/post/transactions

Regards,

Payeezy team


roynalven6991
Re: AVS Response

Greetings,

I'm part of the same team w/ Theodore and we're attempting to integrate your API into our billing platform. Our request payload is similar to yours; it has the same object structure, but not in the same order. Is the order of the fields / objects important and a potential cause for error?

Is there some account feature that needs to be activated to have AVS checks performed and the requisite AVS response information returned?

If you would be so kind and thorough, can you provide some sources of error that MAY result in a lack of AVS response information?

Thank you,

Roy


rohitrajagopal3538
Re: AVS Response

Hello Roy,

I suppose that you are using the merchant token - fdoa-a480ce8951daa73262734cf102641994c1e55e7cdf4c02b6. If yes, this merchant token has already been configured to return AVS and so it should not be the cause. If you are using a different merchant token, please let me know.

Since you said test API, I assume this is the API url you are using - https://api-cert.payeezy.com/v1/transactions     

The order of key-value pairs does not matter and it is not the cause of the error. 

I don't think there are other reasons why you would not receive the AVS response. Can you please paste the request and response for further investigation?

Regards,

Payeezy team


roynalven6991
Re: AVS Response

Greetings,

We were able to find the source of our issue. We are utilizing the Payeezy PHP client library, and it appears as though there is no logic in the getPayload() method to check for and append the contents of a 'billing_address' object when $transaction_type = 'authorize' and $args['method'] == "credit_card". Consequently, the request payload lacked a 'billing_address' object, and hence no avs response information. We've patched the requisite library file on our end and it is now working as expected.

If we are erroneously using the PHP client library, and methods therein, please let us know if there is a better routine. Additionally, if this stands as a valid issue that requires patches of the client PHP library, please let me know if there is another party that should be privy to this information so that the appropriate changes can be made in the code repository.

Thanks!


rohitrajagopal3538
Re: AVS Response

Hi Roy,

Glad you were able to resolve the issue. You are using the correct library. We hadn't included the billing address fields as they are optional as is the case with level 2 and level 3 data fields. You will find all the optional fields documented in this page - https://developer.payeezy.com/creditcardpayment/apis/post/transactions

Regards,

Payeezy team