Integration and Testing

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

Reply
Member
Posts: 1
Registered: ‎02-04-2021

How should I pass the billing address in transaction request for AVS verification

[ Edited ]

Hey guys,

 

For ChargeFromCustomerPaymentProfile, how should I pass the billing address in transaction request? I have enabled the AVS and CVV at account management, but I didn't find a place to pass the builling address along transaction request.

 

Please let me know how to get this AVS work?

 

Many thanks,

 

Bing

Posts: 492
Topics: 0
Kudos: 99
Blog Posts: 0
Ideas: 0
Solutions: 42
Registered: ‎04-28-2017

Re: How should I pass the billing address in transaction request for AVS verification

Hello,

 

Charging a customer payment profile does not allow or require a billing address to be sent because this information should already be stored in the particular customerPaymentProfile.

{
    "createTransactionRequest": {
        "merchantAuthentication": {
            "name": "XXXXXXXX",
            "transactionKey": "XXXXXXXX"
        },
        "refId": "123456",
        "transactionRequest": {
            "transactionType": "authCaptureTransaction",
            "amount": "45",
              "profile": {
    		  	"customerProfileId": "40338125",
    		  	"paymentProfile": { "paymentProfileId": "1000177237" }
  			},
            "lineItems": {
                "lineItem": {
                    "itemId": "1",
                    "name": "vase",
                    "description": "Cannes logo",
                    "quantity": "18",
                    "unitPrice": "45.00"
                }
            },
			"processingOptions": {
            "isSubsequentAuth": "true"
			},
			"subsequentAuthInformation": {
	             "originalNetworkTransId": "123456789123456",
	             "originalAuthAmount": "45.00",
	             "reason": "resubmission"
             
            },
			"authorizationIndicatorType": {
            "authorizationIndicator": "final"
            }
        }
    }
}

Which returns:

{
    "transactionResponse": {
        "responseCode": "1",
        "authCode": "4JYKA2",
        "avsResultCode": "Y",
        "cvvResultCode": "P",
        "cavvResultCode": "2",
        "transId": "2157786076",
        "refTransID": "",
        "transHash": "",
        "testRequest": "0",
        "accountNumber": "XXXX2222",
        "accountType": "Visa",
        "messages": [
            {
                "code": "1",
                "description": "This transaction has been approved."
            }
        ],
        "transHashSha2": "",
        "profile": {
            "customerProfileId": "40338125",
            "customerPaymentProfileId": "1000177237"
        },
        "SupplementalDataQualificationIndicator": 0,
        "networkTransId": "6PUPU4XXWSO7CCQL0YJNYY7"
    },
    "refId": "123456",
    "messages": {
        "resultCode": "Ok",
        "message": [
            {
                "code": "I00001",
                "text": "Successful."
            }
        ]
    }
}

 

To update a customerPaymentProfile:

 

{
    "updateCustomerPaymentProfileRequest": {
        "merchantAuthentication": {
            "name": "XXXXXXXX",
            "transactionKey": "XXXXXXXX"
        },
        "customerProfileId": "10000",
        "paymentProfile": {
            "billTo": {
                "firstName": "John",
                "lastName": "Doe",
                "company": "",
                "address": "123 Main St.",
                "city": "Bellevue",
                "state": "WA",
                "zip": "98004",
                "country": "USA",
                "phoneNumber": "000-000-0000",
                "faxNumber": ""
            },
            "payment": {
                "creditCard": {
                    "cardNumber": "4111111111111111",
                    "expirationDate": "2026-01"
                }
            },
            "defaultPaymentProfile": false,
            "customerPaymentProfileId": "20000"
        },
        "validationMode": "liveMode"
    }
}

 

Powered by NexWebSites.com -
Certified Authorize.net developers
Highlighted
Member
Posts: 2
Registered: ‎01-08-2021

Re: How should I pass the billing address in transaction request for AVS verification

For most merchants, the request for AVS verification on a transaction is automatically submitted via the payment gateway/processor alongside the payment authorization request. The request pings the issuing bank with the billing address information used in the order, and the service returns a code that corresponds to how well the address entered matches up with the address in the issuing bank’s file.