Servired Template


I recently installed in my shop the credit card payments for users. However, there is a problem, because when they pay, although the transaction has been satisfactory, they are directed to a “Failed” status. I’ve tried it myself, and it really does.

The problem seems to be in this line inside /payments/servired.php

$pp_response['order_status'] = (($_REQUEST['Ds_Response'] == '0000' || $_REQUEST['Ds_Response'] == '0099') && $_REQUEST['Ds_Signature'] == $signature) ? 'P' : 'F';

I could just change the F in the end by the O (open), but then, when an order is actually not payed, it classifies it with an O too.

What can I do to solve it?

Best regards