Reply
Highlighted
Member
Posts: 1
Registered: ‎07-06-2017

Card expired

[ Edited ]

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.

Highlighted
Posts: 427
Topics: 0
Kudos: 88
Blog Posts: 0
Ideas: 0
Solutions: 34
Registered: ‎04-28-2017

Re: Card expired

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
Highlighted
Posts: 2,765
Topics: 57
Kudos: 245
Blog Posts: 67
Registered: ‎12-05-2011

Re: Card expired

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