mikeWoods Posted October 5, 2022 Share Posted October 5, 2022 Hi dear friends I need to accept an order immediately in a hook. the hook I'm using is "ShoppingCartCheckoutCompletePage" that passes the order ID (I log it and it's received correctly). But in this hook when I call internal API to accept the order it doesn't work although it returns success message. The order still remains in pending status. My code: $orderid = $vars['orderid']; $postData = array('orderid' => $orderId); $results = localAPI("AcceptOrder", $postData); The result: array(1) { ["result"]=> string(7) "success" } 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.