Do authorize.net provide webhook to handle ARB failed payments?

443 views Asked by At

I need to send customized notification to customer whenever their recurring payment fails, it could be insufficient funds or expired card or declined by bank. I see net.authorize.payment.fraud.declined webhook, but will it work for ARB Failed Payments?

2

There are 2 answers

0
MountainDEWDjv On

I'm probably late to the party but to add to John Conde's response here is a useful bit of info for response codes:

// 1 = successful transaction

// 2 = declined transaction

// 3 = declined transaction -- A referral to a voice authorization center was received. Please call the appropriate number below for a voice authorization.

// 4 = declined transaction -- The code returned from the processor indicating that the card used needs to be picked up.

and you can also go here and type in the response code to see what it means: https://developer.authorize.net/api/reference/responseCodes.html

1
John Conde On

The net.authorize.payment.capture.created is what you are looking for. Inside that payload will be a body resembling:

{
    "notificationId": "d0e8e7fe-c3e7-4add-a480-27bc5ce28a18",
    "eventType": "net.authorize.payment.authcapture.created",
    "eventDate": "2017-03-29T20:48:02.0080095Z",
    "webhookId": "63d6fea2-aa13-4b1d-a204-f5fbc15942b7",
    "payload": {
        "responseCode": 1,
        "merchantReferenceId": "19102146534003137356",
        "authCode": "LZ6I19",
        "avsResponse": "Y",
        "authAmount": 45.00,
        "entityName": "transaction",
        "id": "60020981676"
    }
}

You will need to look for a responseCode with a value of 2 to indicate a declined payment.