cancel
Showing results for 
Search instead for 
Did you mean: 

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

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

bing
Member
2 REPLIES 2

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
NexusSoftware
Trusted Contributor

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.

mason
Member