Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


steph.hope last won the day on February 20 2020

steph.hope had the most liked content!

Community Reputation

13 Good

About steph.hope

  • Rank
    Senior Member

Recent Profile Visitors

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

  1. Wow, that's really concerning. I hope WHMCS is able to help you find a solution.
  2. There's a request here if you want to vote on it: https://requests.whmcs.com/idea/add-manual-password-reset-back-to-admin But WHMCS have already replied to it saying that (for some inexplicable reason) they don't intend to change it, so I'm fairly sure we're stuck with this situation.
  3. I believe you just need to copy them from 'Six' into the folder for your template.
  4. I had a similar issue after upgrading to V8. I was using a custom template which didn't include the new 'user' related templates. Does the template you're using include 'user-password.tpl', 'account-user-management.tpl' etc?
  5. Does anyone else have any experience with this?
  6. the line in your above code: use WHMCS\Database\Capsule; needs to be changed as per the post above yours (my posts don't go through when I include that line in them - the one beginning with 'require') With that line changed and using v8.1.3, it's working for me. I'm not sure what else could be causing it to not work.
  7. Sorry, I'd based my reply on your saying you were using v7. As per the other thread, in v8 the bank details are encoded, so you need to change to: (Remove the space in the word require in the first line) r equire_once ROOTDIR . '/includes/gatewayfunctions.php'; $banktransfer = getGatewayVariables('banktransfer'); $paymenthtml = '<table width="100%" bgcolor="#ccc" cellspacing="1" cellpadding="2" border="0"> <tr height="30" !bgcolor="#efefef" !style="font-weight:bold;text-align:center;"> <td width="33%" bgcolor="#efefef" style="text-align:center;"><strong>Bank Transfer</strong></td> <td width="67%" bgcolor="#ffffff" style="text-align:center;">'.nl2br($banktransfer['instructions']).'</td> </tr> </table>'; $pdf->writeHTML($paymenthtml, true, false, false, false, ''); I would expect that with the previous code you would be having something appearing on the pdf, but the payment instructions would be obfuscated. Are you seeing that or nothing at all added?
  8. After the code you've already added, which fetches the bank payment instructions, you also need to add the below to display the information on the invoice pdf: as per the other thread at
  9. I'm working on migrating our clients' Stripe details from our legacy system into WHMCS. By entering the appropriate data into tblclients gatewayid, cardlastfour, cardtype fields the card is successfully migrated to a payment method when I view the clients profile or attempt to capture an invoice. My problem is that the expiry date is not migrated. I'm entering them in the '0124' format but I can see that the expdate field is a blob type and that once they are in tblcredit cards it's a datetime. What format does the expdate field in the tblclients expect the date to be in so that it can be migrated?
  10. You need to replace the definitions of the quarters with their new names; $periodLabels = array(1 => 'February - April', 2 => 'May - July', 3 => 'August - October', 4 => 'November - January'); And also replace these two lines: $queryStartDate = mktime(0, 0, 0, ($a - 1) * 3 + 1, 1, $i); $queryEndDate = mktime(0, 0, 0, $a * 3 + 1, 0, $i); with this: $queryStartDate = mktime(0, 0, 0, ($a - 1) * 3 + 2, 1, $i); $queryEndDate = mktime(0, 0, 0, $a * 3 + 2, 0, $i); I think that should do it.
  11. So I'd believed WHMCS when they said "...in fact this will not work with our API Credential Roles functionality. If you want to implement a URL that can run custom code, I would recommend using an addon module with the admin area output or client area output functionality". Turns out this isn't true and the extremely roundabout way I'd built a messy solution using an Addon Module was unnecessary. All that was required was manually adding a permission to tblapi_roles to allow access to the custom file. (Thanks to the below post for the hint) In case it's of use to anyone else - Please test it before using, I make no claims about its correctness: Request Parameters "SetBillingContact" Parameter Type Description Required action string “SetBillingContact” Required clientid int Optional contactid int Optional Response Parameters Parameter Type Description result string The result of the operation: success or error <?php if (!defined("WHMCS")) { exit("This file cannot be accessed directly"); } $clientID = $whmcs->get_req_var("clientid"); $contactID = $whmcs->get_req_var("contactid"); if ($clientID == "" || $contactID == ""){ $apiresults = array("result" => "error", "message" => "Missing required variable"); } else { try { $client = WHMCS\User\Client::findorfail($clientID); $client->billingcid = $contactID; $client->save(); $apiresults = array('result' => 'success'); } catch (Exception $e) { $apiresults = array("result" => "error", "message" => "Client not found"); return NULL; } } ?>
  12. Thanks for posting this! I'd believed WHMCS when they said it was no longer possible to create custom APIs so it's nice to see how I can still manage it.
  13. We're moving from an old custom solution unfortunately.
  14. We are moving clients into WHMCS and would like to import their existing Stripe cards rather than having to ask for their card numbers again. In our old system we have stored a card_1234 number and a fingerprint. Because the card_data field in WHMCS is encrypted I can't tell what data it requires or how to insert it. Has anyone dealt with this before?
  • 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