cancel
Showing results for 
Search instead for 
Did you mean: 

Card expired

If my card is expired for the particular month, for this month authorize.net Silent Post  first given me successful recurring request and then after given me failed post with message "The card is expired".

I am really stuck here, can anybody help me out here.

4uE73QEHwd
Member
2 REPLIES 2

Ideally Webhooks should be used instead of the silent post method. However, when receiving a silent post you could check the responseCode and responseReasoneCode values to determine the status of the transaction.

 

$response_code = (int) $_POST['x_response_code'];
$reason_code = (int) $_POST['x_response_reason_code'];
 if ($response_code == 3 && $reason_code == 8)
    {
        // An expired card
    }
Powered by NexWebSites.com -
Certified Authorize.net developers
NexusSoftware
Trusted Contributor

Hello @4uE73QEHwd

 

Another option is to use Account Updater to automatically keep cards on file information accurate.

 

https://www.authorize.net/solutions/merchantsolutions/merchantservices/accountupdater/

 

Richard