Hi , thanks for your comment, print_r($_POST) result is Array()
I got it working, now the function looks like this.
function uc_nochex_complete($cart_id = 0) {
$order = uc_order_load($_POST['order_id']);
// change order status to payment revieved
uc_order_update_status($order->order_id, 'payment_received');
// Empty the cart.
uc_cart_empty($cart_id);
exit();
}Can anyone see any problems that might arise with this code? there doesnt seem to be much error checking or anything?
Thanks
Andy



Joined: 03/27/2008