Jump to content

Api Product upgrade problem


johny.pna

Recommended Posts

Hi,

 

when i try to update producy via api i receive response:

 

request data:

 

$data = array(

'clientid' => 84,

'serviceid' => 116,

'type' => 'product',

'newproductid' => 10,

'newproductbillingcycle' => 'monthly',

'paymentmethod' => 'paypal',

'ordernotes' => 'do du....',

'calconly' => false,

);

print_r($w->doRequest('upgradeproduct', $data));

 

response:

[result] => success

[oldproductid] => 9

[oldproductname] => free

[newproductid] => 10

[newproductname] => basic

[daysuntilrenewal] => 30

[totaldays] => 30

[newproductbillingcycle] => monthly

[price] => $1.00 USD

[id] => 116

[orderid] => 126

[order_number] => 6339632159

[invoiceid] => 0

 

 

no invoice is created,

in table tblorders paymentmethod is empty,and payment method witch i send with request is writen in field promocode

 

 

geting order info i receive:

 

print_r($w->doRequest('getorders',array('id' => 126)));

 

Array

(

[result] => success

[totalresults] => 1

[startnumber] => 0

[numreturned] => 1

[orders] => Array

(

[order] => Array

(

[0] => Array

(

[id] => 126

[ordernum] => 6339632159

[userid] => 84

[contactid] => 0

[date] => 2011-07-22 16:54:51

[nameservers] =>

[transfersecret] =>

[renewals] =>

[promocode] => paypal

[promotype] =>

[promovalue] =>

[amount] => 0.00

[paymentmethod] =>

[invoiceid] => 0

[status] => Pending

[ipaddress] => xxx.xxx.xxx.xxx

[fraudmodule] =>

[fraudoutput] =>

[notes] => do du....

[paymentmethodname] =>

[paymentstatus] =>

[name] =>

[currencyprefix] => $

[currencysuffix] => USD

[lineitems] => Array

(

)

 

)

 

)

 

)

 

)

pls help :)

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