Jump to content

medineshkatwal

Member
  • Posts

    2
  • Joined

  • Last visited

About medineshkatwal

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

medineshkatwal's Achievements

Junior Member

Junior Member (1/3)

0

Reputation

  1. Hello, Why addorder configoptions not working. i have also done base64encoding in configoption like this. curl -X POST \ https://myhost.com/includes/api.php \ -H 'Content-Type: application/json' \ -H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \ -F username=username \ -F password=password\ -F responsetype=json \ -F action=AddOrder \ -F clientid=293 \ -F paymentmethod=tco \ -F 'pid[0]=1' \ -F 'billingcycle[0]=semiannually' \ -F 'configoptions=[YToxOntpOjI7aToyO30=, YToxOntpOjEwO2k6MjE7fQ==]' \ -F promooverride=false \ -F currency=INR Response is: { "result": "success", "orderid": 778, "productids": "949", "addonids": "", "domainids": "", "invoiceid": 824 } When i look in whmcs i can see that there is no changes in configoptions. It doesn't throw error if my configoptions is wrong. Evertime the first options of configoptions are selected as you can see in attachment. When i look in whmcs add order documentation: https://developers.whmcs.com/api-reference/addorder/ configoptions is send like this: array(base64_encode(serialize(array("2" => 2))), base64_encode(serialize(array("10" => 21)))); => ouput is [YToxOntpOjI7aToyO30=, YToxOntpOjEwO2k6MjE7fQ==] Please help me i am stuck into this problem for long time. Thank you.
×
×
  • 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