Jump to content

souzadavi

Members
  • Content count

    65
  • Joined

  • Last visited

Community Reputation

12 Good

About souzadavi

  • Rank
    Member

Recent Profile Visitors

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

  1. Hello in: https://developers.whmcs.com/api-reference/addtransaction/ the request parameter fees is wrong, the right is fee, why whmcs team still keeping this mistake? How to get it updated? thanks
  2. Hello, I'm receiving this message: Error: Whoops\Exception\ErrorException: Allowed memory size of 805306368 bytes exhausted (tried to allocate 4096 bytes) in /home/username/vendor/phpmailer/phpmailer/class.smtp.php:659 Stack trace: #0 /home/username/vendor/whmcs/whmcs-foundation/lib/Utility/Error/Run.php(0): WHMCS\Utility\Error\Run->handleError(1, 'Allowed memory ...', '/home/username/...', 659) #1 [internal function]: WHMCS\Utility\Error\Run->handleShutdown() #2 {main} Is it normal? Why is it using so much memory? this trouble start 3 months ago, I'm increasing memory every month. Ps.: this happened 50 minutes after daily cronjob. Any info will be great... thanks....
  3. @steven99 help me... solved with session variables.... thanks!
  4. souzadavi

    Credit Card Message

    @steven99 thank you very much.... working nicely!!!!
  5. @brian! nice! Hook again, below is how I fixed it for while.... add_hook('ClientAreaPageCreditCard', 1, function($vars) { return array('errormessage' => 'Erro com o cartão de crédito'); }); Ps.: I created the request to be able to translate it... thanks But I din´t figured out how to bring the information from _storeremote function to the hook.. There is any way to communicate from the module gateway to hooks?? thanks a lot!!!
  6. @brian! too bad!!!! there is anyway to get it in next releases of whmcs? thanks
  7. souzadavi

    Credit Card Message

    @steven99 but this is only for the log in admin, I would like to show it for my user in client area....
  8. Please any one know how to translate this message: Remote Transaction Failure. Please Contact Support This error message show on credicard.php thanks 🙂
  9. souzadavi

    Credit Card Message

    In clientarea.php?action=creditcard there is a error message to user, there is anyway to give a better error message that come from the payment module gateway? Example: I would like to tell my user the real problem and not only: Remote Transaction Failure. Please Contact Support. So I can tell my user, this credit card brand is wrong, or please check the validation date, or your credit card is not able to use in this country. I think it could be more useful, but I got no clue how to print the error message in template from a gateway payment module....This message error come from when the function _storeremote() is executed... Any ideia will be appreciate.... thanks
  10. souzadavi

    Credit Card Token not saved on client

    @SeanP good point! But the Hook will force the update only with the user goes to credicard area.... Maybe It could bet set as WHMCS bug...
  11. souzadavi

    Credit Card Token not saved on client

    I did a hook, to fix it, so when the user access: /clientarea.php?action=creditcard I just update the user to creditcard payment. add_hook('ClientAreaPageCreditCard', 1, function($vars) { $command = 'UpdateClient'; $postData = array( 'clientid' => $vars['clientsdetails']['userid'], 'paymentmethod' => 'CreditCardModuleName', ); $results = localAPI($command, $postData, $adminUsername); });
  12. I was testing the function of credit card in WHMCS with token. Every thing works fine, but some thing wrong happen. If the customer profile has another default payment gateway defined that isnt credit card payment, when this customers goes to save the credit card in client area in (/clientarea.php?action=creditcard) the WHMCS doesn't save the token of credit card, the whmcs save all information about the credit card but doesn't save the token of credit card.... Looks like the method doesnt call the function _storeremote() of the creditcard payment... My question is how to force the form in /clientarea.php?action=creditcard call the function _storeremote() of the credit card payment gateway? thanks...
  13. souzadavi

    Add Client API Required Fields

    yes this was the solution!!!! thanks again!!!
  14. souzadavi

    Add Client API Required Fields

    In the docs there is a option: skipvalidation bool Pass as true to ignore required fields validation Just set it to true and it's possible to add customers without those required fields!!! I tried to answer in the request comments but it's already closed. So it's here for somebody like me who do not full read the docs with attention :)
×

Important Information

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