order_create not returning orderhandle

Forum for .PHP developers using the E-conomic API.
Exchange your ideas, tip and tricks using the API.
Best Practices

order_create not returning orderhandle

Postby dmdisco » Wed Dec 07, 2011 3:26 pm

it seems i don't get the order handle from the creation
Code: Select all
      $order_handle = $this->client->Order_Create(array(
         'debtorHandle' => $debtor_handle
      ))->Order_Create_CreateResult;
      
      var_dump($order_handle);

this just returns NULL

the order is created with the correct debtor but i cant add anything to it or change it, so what am i doing wrong?
-
dmdisco
 
Posts: 2
Joined: Wed Dec 07, 2011 3:22 pm

Re: order_create not returning orderhandle

Postby dmdisco » Wed Dec 07, 2011 4:32 pm

never mind found the typo
Code: Select all
      $order_handle = $this->client->Order_Create(array(
         'debtorHandle' => $debtor_handle
      ))->Order_CreateResult;
     
      var_dump($order_handle);
-
dmdisco
 
Posts: 2
Joined: Wed Dec 07, 2011 3:22 pm


Return to PHP



cron