Jump to content

AcceptOrder method not working


mikeWoods

Recommended Posts

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" }

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated