Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


mfoland last won the day on September 19 2019

mfoland had the most liked content!

Community Reputation

12 Good


About mfoland

  • Rank

Recent Profile Visitors

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

  1. @BOF007 does the licnense product show under the client? Shoot me a DM and I can help you out.
  2. @Wouter0100 you taught me something new! Can you encode values in the addons table as well and have it automatically unencrypt? I really like that and it would be neat if it could! I'm glad I learned something new. Thank you!
  3. I'm not exactly sure on how you would encrypt and update every one hour! Sounds like a heck of a payment gateway. What I would do is use md5 personally, but I think for what you are doing, is an SHA hash. Refer to this: https://stackoverflow.com/questions/10916284/how-to-encrypt-decrypt-data-in-php As far as having it change every hour, you'll need to likely set up a cron job that would use Laravel to change these values. Something WHMCS may be able to pipe in, or the development community as I'm not sure how to exactly get these to change every hour.
  4. Hello @Gitex, Let's address this in two parts: Do you mean decrypt? I'd suppose if you want to ENCRYPT you could use md5, but then you'd need to decrypt in PHP. WHMCS uses encryption already, so to decrypt what they have, you'd need something like this: function gateway_capture($params) { require_once ROOTDIR . '/includes/gatewayfunctions.php'; $GatewayConfig = getGatewayVariables('gatewayName'); $testM = $GatewayConfig["testMode"]; } What this does is grabs the parameters that are encoded. As such, I've given you a start. From here, you'd need tokens, client info, etc, which are used as parameters. I'd look up the documentation if you need more guidance. You would replace gateway and gatewayName to the actual name of your gateway. What type of addons are you trying to use? As I mentioned above, if it's the gateway portion, you'll need to use the excerpt above. I use the Licensing addon for my payment gateway, and it works flawlessly with Version 8. We are solving something internal with conversion, but using the Params portion will make your gateway work with version 8. At first, we were using straight laravel, but even the SDK says use $params.
  5. @WHMCS Alex Please refer to Ticket #DIN-271775. I use Laravel to get pertinent information for my payment gateway, such as version number, Sandbox or Token Credentials to connect to the API, etc in the Configuration portion for the Gateway. Is there a way to get this back to the old way?
  6. Went to ugprade to version 8.0.2 and now getting this error: Error: Class 'WHMCS\Utility\Environment\CurrentRequest' not found in /home/mybeastportal/public_html/dev/vendor/whmcs/whmcs-foundation/lib/Application.php:0 Stack trace: #0 /home/mybeastportal/public_html/dev/vendor/whmcs/whmcs-foundation/lib/Application/ApplicationServiceProvider.php(0): WHMCS\Application->__construct(Object(WHMCS\Config\Application), Object(WHMCS\Database)) #1 /home/mybeastportal/public_html/dev/vendor/illuminate/container/Container.php(801): WHMCS\Application\ApplicationServiceProvider->WHMCS\Application\{closure}(Object(WHMCS\Container), Array) #2 /home/mybeastportal/public_html/dev/vendor/illuminate/container/Container.php(687): Illuminate\Container\Container->build(Object(Closure)) #3 /home/mybeastportal/public_html/dev/vendor/illuminate/container/Container.php(633): Illuminate\Container\Container->resolve('app', Array) #4 /home/mybeastportal/public_html/dev/vendor/illuminate/container/Container.php(1278): Illuminate\Container\Container->make('app') #5 /home/mybeastportal/public_html/dev/vendor/illuminate/support/Facades/Facade.php(198): Illuminate\Container\Container->offsetGet('app') #6 /home/mybeastportal/public_html/dev/vendor/illuminate/support/Facades/Facade.php(166): Illuminate\Support\Facades\Facade::resolveFacadeInstance('app') #7 /home/mybeastportal/public_html/dev/vendor/whmcs/whmcs-foundation/lib/Application/Support/Facades/Facade.php(0): Illuminate\Support\Facades\Facade::getFacadeRoot() #8 /home/mybeastportal/public_html/dev/init.php(0): WHMCS\Application\Support\Facades\Facade::self() #9 /home/mybeastportal/public_html/dev/admin/index.php(0): unknown() #10 {main} Not sure what's going on here.
  7. Hello @LifeSteala. I developed a payment gateway and just actually got the Attempt Capture to work, with the exception of the Cron Job not working. It depends on which what you are exactly doing, as to store the token. You will need to call a method call CreateRemoteCardPayMethod. Once you do this, you can easily add the card. Deleting it, I'm having to build a delete Card function that not only deletes from the API, but will delete said card from WHMCS. PM me if you need assistance.
  8. I would like to bump this! @WHMCS John, is there a way to make even a class for RemoveRemotePayMethod?
  9. @wofbit send me a DM with what you are wanting to accomplish, and I'd be glad to help.
  10. @Kian and @wofbit if you guys need help with working on the License check, I can help. I've learned to expand on it for even different key types product types, auto license upgrades, etc 🙂
  11. One thing sticks out here right off the bat, but I completely understand the error. The Card Expiry works in MMYY not just year. Here's something I've done since my Gateway runs differently... $expYr = $finCardRes["card"]["exp_year"]; $expMo = $finCardRes["card"]["exp_month"]; if ($expMo < '10') {$finExpMo = '0' .$expMo;}else {$finExpMo = $expMo;} $finYr = substr( $expYr, -2); $finExp = $finExpMo.$finYr; Again, I still hope WHMCS can pipe in here. The API I'm working with (Square) has the date as a one number integer for single months 1-9 and 2 digits for 10-12 (reasoning if my if statement). The Year has 4 digits (from the API) so I had to create the substring to take off the first two numbers for the year (eg 20) which leaves you with the last remaining part of the year to fit it in WHMCS's MMYY format.
  12. I'd like to bump this. The API says it will store Remote Data, which, in the Gateway I have built and works, except recurring payments (reason I'm running into this), but it says Unsupported Gateway Type for Storage. Can anyone from WHMCS pipe in on this?
  13. @wofbit I just strolled across this. I would write a Future Request idea at requests.whmcs.com 🙂 I would also take a look at this: https://www.php.net/manual/en/function.inet-pton.php and try it on your License.php file.
  14. @Alison Gatt you can DM me. I'm working on this as well. What Gateway are you working with?
  • 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