Jump to content

ty0716

Members
  • Posts

    59
  • Joined

  • Last visited

ty0716's Achievements

  1. thank you ,but use post method still return same error. I found this can be success in order plugin,signup :$this->clients->create($vars); There are other ways to achieve registration by API, unless post data to a custom plugin then register?
  2. error: why this? <?php require_once "../blesta/blesta_api.php"; $user = "resller"; $key = "**********"; $url = "http://*********/api/"; $api = BlestaApi::getIns($url, $user, $key); $json='{"action":"signup","first_name":"\u9676","last_name":"\u96e8","company":"\u6c49\u53e3\u5b66\u9662","address1":"\u6c5f\u590f\u533a\u6587\u5316\u5927\u9053299\u53f7","address2":"16703","city":"\u6b66\u6c49\u5e02","country":"CN","state":"13","zip":"430070","numbers":[{"type":"phone","location":"work","number":"15527474844"},{"type":"fax","location":"work","number":"13396009700"}],"email":"hkxy99@163.com","tax_id":"95599","custom_field1":"424460883","username_type":"email","username":"","new_password":"qaz12345","confirm_password":"qaz12345","client_group_id":"1","settings":{"username_type":"email","tax_id":"95599","default_currency":null,"language":"en_us"},"custom":{"1":"424460883"}}'; $vars=json_decode($json,true); $response=$api->get('clients','create',$vars); print_r($response->response()); print_r($response->errors()); data: json->array: {"action":"signup","first_name":"\u9676","last_name":"\u96e8","company":"\u6c49\u53e3\u5b66\u9662","address1":"\u6c5f\u590f\u533a\u6587\u5316\u5927\u9053299\u53f7","address2":"16703","city":"\u6b66\u6c49\u5e02","country":"CN","state":"13","zip":"430070","numbers":[{"type":"phone","location":"work","number":"15527474844"},{"type":"fax","location":"work","number":"13396009700"}],"email":"hkxy99@163.com","tax_id":"95599","custom_field1":"424460883","username_type":"email","username":"","new_password":"qaz12345","confirm_password":"qaz12345","client_group_id":"1","settings":{"username_type":"email","tax_id":"95599","default_currency":null,"language":"en_us"},"custom":{"1":"424460883"}} Error: Internal error: Failed to retrieve the default valuestdClass Object ( [error] => stdClass Object ( [message] => An unexpected error occured. [response] => Internal error: Failed to retrieve the default value ) )
  3. Now i build a new user center base on blesta api.Simplifying a number of steps. In this site user can view invoices, so, how can i make this go to payment url? instead of redevelopment. my english is poor,May be expressed is not clear. thanks you.
  4. Hi, I want to achieve this function. When invoice payment is successful, and is pay for a service. Then post a json data to my other php url, like this {"client_id":1,"invoice_id":9,time:"2015-09-15 10:14:33",amount:"","service_id":13} How can this be achieved?
  5. I find in this : http://dev.blesta.com/browse/CORE-639 http://www.blesta.com/forums/index.php?/topic/2173-price-tiers/ This is still not achieved? for example, set in a group for some customers buy more frequently. When they buy automatic discount. Not use Coupon,this is not what I want, nor is it a good solution.Because such a group to go to a setting, and to inform the customer coupon code. Or what plugins to achieve?If the self-development seems to modify many system files are not easy to upgrade.in addition,I'm not very understanding blesta. Do you have any good suggestions to me?
  6. I found the recharge input 99999999999999999999999999999999999999 ......etc, And a large enough amount of my payment gateway would return parameter error.
  7. Now is the order option has no language change, because the database has been in the. But this is not all people can understand. I think of two ways. 1.Enter different languages in the label or name. 2.The label or name as an array of keys.
  8. Now only use client or admin setting to switch language. But unable to switch the language without the user logged in. It seems less friendly.When the user is not the default language may not understand the order information.
  9. why i not display add link button? and this can't edit exit system menu.
  10. I find when a plugin install, this navigation link name seems Fixed in database plugin_action table. It doesn't look very friendly.This can cause multiple languages to be invalid when language change if exist multiple languages. And one plugin not permit create More than one client navigation links?
  11. Sounds good。 Does this plugin need to modify the template file?
  12. for example,support_managepro plugin. when staff reply it will send a email to this client,i need to capture this event and send a sms? At the same time,when service Expire system would send a email, i need to send a sms Together. Is there a way to do this? Thank you.
  13. Is there such a plugins? I need to manage all of the menu like wordpress,There may be outside url. If not,Did you have any good suggestions? They are as follows: 1.menu add,edit,add,Whether to hide,Submenu 2.Sequence 3.Whether it is outside the chain. Another problem is: if i $this->set("value",$value); in plugins ,How to use this variable in the dashboard?
  14. alipay intro:http://global.alipay.com gateway notify_url: http://billing.domain.com/callback/gw/1/alipay/?client_id=1 which method use to check is paid? and then change this order status?
×
×
  • Create New...