Jump to content

malin

Members
  • Content count

    29
  • Joined

  • Last visited

Community Reputation

0 Neutral

About malin

  • Rank
    Junior Member

Recent Profile Visitors

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

  1. The tblinvoices records do not have the invoicenum. mysql> select * from tblinvoices limit 3; +----+--------+------------+------------+------------+---------------------+----------------------+----------+--------+------+------+--------+---------+----------+--------+---------------+-------+ | id | userid | invoicenum | date | duedate | datepaid | last_capture_attempt | subtotal | credit | tax | tax2 | total | taxrate | taxrate2 | status | paymentmethod | notes | +----+--------+------------+------------+------------+---------------------+----------------------+----------+--------+------+------+--------+---------+----------+--------+---------------+-------+ | 23 | 5 | | 2018-08-10 | 2018-08-10 | 2018-08-10 02:54:51 | 0000-00-00 00:00:00 | 235.00 | 0.00 | 0.00 | 0.00 | 235.00 | 0.00 | 0.00 | Paid | hanteddosing | | | 25 | 6 | | 2018-08-14 | 2018-08-14 | 2018-08-22 07:13:23 | 0000-00-00 00:00:00 | 87.00 | 0.00 | 0.00 | 0.00 | 87.00 | 0.00 | 0.00 | Paid | hanteddosing | | | 26 | 6 | | 2018-08-18 | 2018-08-18 | 2018-08-22 07:13:18 | 0000-00-00 00:00:00 | 87.00 | 0.00 | 0.00 | 0.00 | 87.00 | 0.00 | 0.00 | Paid | hanteddosing | | +----+--------+------------+------------+------------+---------------------+----------------------+----------+--------+------+------+--------+---------+----------+--------+---------------+-------+ 3 rows in set (0.00 sec)
  2. the ` callback3DSecureRedirect($invoiceId, true); ` seems do not work. when I pay success, there will request data to `callback` php file. in the callback file, I execute the `callback3DSecureRedirect($invoiceId, true);`, but the pay page do not redirect. who can tell me where is the issue?
  3. in the https://github.com/WHMCS/sample-merchant-gateway/blob/master/modules/gateways/callback/merchantgateway.php the last line: there calls the callback3DSecureRedirect($invoiceId, $paymentSuccess); I am sure the data is correct, but the redirect do not work. but seems it do not redirect. why?
  4. How to get the current domain?
  5. Hi, friends: the WHMCS community is not active. how do you think this?
  6. Whether the `return_url` is the IPN_URL in the WHMCS gateway demo? https://github.com/WHMCS/sample-gateway-module/blob/master/modules/gateways/gatewaymodule.php#L202
  7. When I see the gateway demo in github: https://github.com/WHMCS/sample-gateway-module/blob/master/modules/gateways/gatewaymodule.php#L204 the line 204. there is no way to add curl `-H` param in form. how to solve this issue?
  8. malin

    I am malin.

    Hi, everyone: Thanks for your attention, thanks to WHMCS, we are gather there. I am Malin, I am a 28 boy, I like coding and study. hope everyone become active in there. thanks.
  9. When I develop a third-party payment gateway, if the `link` is config wrong, whether it will go to creditcard.php by default? http://www.demo.com/creditcard.php
  10. I want to develop a third-party payment gateway, but I found the payment code all are encoded. I have some questions: 1.if I follow the Github example to develop the payment gateway, all are source code without encode, can I test it in WHMCS? (because the code put in the place all are encoded, I am, not sure whether it can run success) 2.if can not run success source code, how can I develop it? because I can not test the code. 3. whether use ionCube to encode the codes?
  11. I have a question of WHMCS finance settings. if my clients have products, there also have the automatically generate bill, because the WHMCS once generate the bill, if the client has the balance, there will deduct money immediately. I have the requirement, whether I can set the deduct money time is not as same as the bill generate time? because our bill generate time is before expire time 7 days. if client can not decide whether renew the product in that time, there will deduct money too. how to solve this issue?
  12. I saw some IDC operator's WHMCS. Their clients's product, they can see the bill, and in the bill they can pay it. and in the bill list, the clients can also check the service too. Can you tell me how to make it come true for me?
  13. Hi, friend. do you mean you test my code success? but mine there is no any result. can you contact me?
  14. I added a ClientAdd hook in developing WHMCS: add_hook('ClientAdd', 1, function($vars){ logActivity('client add -liaomalin2'); // phonenumber, username $params = array( "whmcs_tblclients_id" => $vars['userid'], "email" => $vars['email'], "username" => $vars['email'], "phone" => $vars['phonenumber'], "password" => $vars["password"] ); // QICLOUD_API_USER_REGISTER $request = Requests::get('http://xxx.xxx.xxx.xxx:8000/api/groups/list/', array(), null); // logActivity($params . '$params-liaomalin2'); logActivity($request . '$request-liaomalin2'); }); but in the database, log activity: [![enter image description here][1]][1] you see the `$request` is nothing there, the `$params` is a Array. where is the error? I tried the code in my other demo project: $request = Requests::get('http://xxx.xxx.xxx.xxx:8000/api/groups/list/', array(), null); the `$request` is a object: object(Requests_Response)#4 (10) { ["body"]=> string(449) "[{"id":2,"name":"group02","permissions":[34,35,36,31,32,33,1,2,22,23,24]},{"id":1,"name":"staff","permissions":[1,2,3]},{"id":7,"name":"aa","permissions":[]},{"id":5,"name":"a","permissions":[34,35,36]},{"id":3,"name":"a","permissions":[13]},{"id":6,"name":"test1","permissions":[]},{"id":4,"name":"s","permissions":[]},{"id":8,"name":"","permissions":[]},{"id":9,"name":"x","permissions":[]}]" ["raw"]=> string(655) "HTTP/1.1 200 OK X-Frame-Options: SAMEORIGIN Allow: GET, HEAD, OPTIONS Content-Length: 449 Content-Type: application/json Vary: Accept, Cookie Date: Tue, 28 Aug 2018 04:25:38 GMT Connection: close [{"id":2,"name":"group02","permissions":[34,35,36,31,32,33,1,2,22,23,24]},{"id":1,"name":"staff","permissions":[1,2,3]},{"id":7,"name":"s","permissions":[]},{"id":5,"name":"s","permissions":[34,35,36]},{"id":3,"name":"s","permissions":[13]},{"id":6,"name":"test1","permissions":[]},{"id":4,"name":"a","permissions":[]},{"id":8,"name":"a","permissions":[]},{"id":9,"name":"a","permissions":[]}]" ["headers"]=> object(Requests_Response_Headers)#5 (1) { ["data":protected]=> array(6) { ["x-frame-options"]=> array(1) { [0]=> string(10) "SAMEORIGIN" } ["allow"]=> array(1) { [0]=> string(18) "GET, HEAD, OPTIONS" } ["content-length"]=> array(1) { [0]=> string(3) "449" } ["content-type"]=> array(1) { [0]=> string(16) "application/json" } ["vary"]=> array(1) { [0]=> string(14) "Accept, Cookie" } ["date"]=> array(1) { [0]=> string(29) "Tue, 28 Aug 2018 04:25:38 GMT" } } } ["status_code"]=> int(200) ["protocol_version"]=> float(1.1) ["success"]=> bool(true) ["redirects"]=> int(0) ["url"]=> string(42) "http://xxxx:8000/api/groups/list/" ["history"]=> array(0) { } ["cookies"]=> object(Requests_Cookie_Jar)#2 (1) { ["cookies":protected]=> array(0) { } } } [1]: https://i.stack.imgur.com/8yUac.jpg Why the logActivity is nothing?
  15. @WHMCS ChrisD Why I do not work? whether should open any switch?
×

Important Information

By using this site, you agree to our Terms of Use & Guidelines