Payment Gateway Not Completing Order

I created a payment gateway as an addon. Everything seems to work except for the order completion page that we get redirected to after making payment from a third-party website.

The order completion page (fn_url("checkout.complete?order_id=$order_id", AREA, 'current')) is giving us a 403 error. Kindly advise what could be missing?

On post payment I have the following logic to finalize payment:

$order_id = isset($_REQUEST['order_id'])
? $_REQUEST['order_id']
: null;

fn_finish_payment($order_id, $pp_response);

Is this sufficient to ensure proper closing off of the order?

Try to call fn_order_placement_routines as well

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.