Jump to content

cesiumdeth

Member
  • Posts

    11
  • Joined

  • Last visited

About cesiumdeth

cesiumdeth's Achievements

Junior Member

Junior Member (1/3)

0

Reputation

  1. When processing a Stripe payment the customer was seeing "Remote transaction failure. Please contact support". When I looked in the log it was saying "No Such Customer" and was showing a customer ID. My customers were previously using Quantum Vault and I finally tracked this down that the Stripe payment gateway was being passed the old Quantum Vault customer ID. I found a fix that works so I thought I would share. If you look at the MySQL database at the table named 'tblclients' for each customer row that had a 'gatewayid' value from the old Quantum Vault module, I had to update the record to remove the old 'gatewayid' value and just make it blank. Then have the customer pay an invoice with the Stripe gateway. You will notice the customer is now able to successfully pay and after they pay the 'gatewayid' will be updated with a new valid value. Hope this helps someone, I wasted a lot of time tracking it down.
  2. Thanks for the help. I had this same exact error code "WHMCS rejected your credentials because: Authentication failed". Your suggestion worked for me. After I cleared out all special characters in my password I did a test and it worked. Then I went back and sprinkled in a few special characters, for example # ! and a few others worked just fine. I did not figure out exactly which ones were causing the issue, but I know I did not have any "|" or ">" characters. My guess would be either one or a combination of "@", "%", "$", "*", or "&".
  3. With the help of WHMCS support I was able to figure this out. There was nothing wrong with my hook code. The problem is the InvoiceUnpaid and InvoiceCancelled hooks only fire when an admin clicks the "Mark Unpaid" or "Mark Cancelled" button while viewing an invoice. Personally I think this is a deficiency of these hook points because there are multiple ways you can set the status of an invoice to "Unpaid" or "Cancelled" (such as the sequence I described in my original post that was not firing the hooks). I also let WHMCS support know that the hook documentation for these two hook points mentions nothing about this limitation. I'm posting this hoping it helps someone find this answer faster until the WHMCS hook documentation is updated.
  4. I think this might help: http://forum.whmcs.com/showthread.php?57278-Introduction-to-WHMCS-SMARTY-Debugging-Display-if-customer-OR-admin-are-logged-in
  5. I am trying to get hooks working. As a test I've created a file called myhooks.php and placed it in the /includes/hooks folder (same location as the WHMCS included hooks example file named example.php). In this file I've created a hook that should fire when an admin changes an invoice to either "Cancelled" or "Unpaid" status. To prove the hook is being called I'm trying to make an internal API call to make an entry in the activity log. I log in with my admin account (for my example we'll say my username is "cesiumdeth"), navigate to an invoice, and change the status back and forth between a status of "Cancelled" and "Unpaid" and save between each change of course. In the whmcs Activity Log I get the default log entry that notes "Modified Invoice Options - Invoice ID: 12345", but I do not see the custom log entry from the call in my code. Anyone see what I'm missing or messed up and why this isn't working? By the way the I've checked that the admin user I'm using in the code does have API permissions (it is a full administrator account with all permissions). The code in my "myhooks.php" file is as follows: <?php function wr_hook_InvoiceChange($vars) { $command = "logactivity"; $adminuser = "cesiumdeth"; $values["description"] = "proof wr_hook_InvoiceChange was called"; $results = localAPI($command,$values,$adminuser); } add_hook("InvoiceUnpaid",1,"wr_hook_InvoiceChange"); add_hook("InvoiceCancelled",1,"wr_hook_InvoiceChange"); ?>
  6. I'm having the same problem on Rackspace Cloud Sites. I run an older version of WHMCS (4.5.2) in the same environment without having this problem. I'm not sure if it is just what database server I ended up on, but a new install of WHMCS () and I'm having this proxy error problem. It isn't on a specific page, it is on all pages. Also, when I'm getting the proxy error in the WHMCS software I am able to load other .php pages on the same server with no problem, so it may be the software? I've never seen this problem with the older version of the software. I can't say if it is the software or the server, but please share if you come up with a solution and I'll do the same.
  7. {php} //getcwd() gets the current working directory //or in the case of the WHMCS templates this //gets the full path to the folder you are running //WHMCS in include (getcwd().'/somefile.php'); {/php}
  8. Is there a way for me to get an email when a new client creates an account? I have it setup so a client can create an account without ordering anything. I would like to know when a new client creates the account though.
  9. I can't even seem to find this in the client area... can someone point me in the right direction? I am running WHMCS v3.8.3, do I have to be on v4.X to use this?
×
×
  • 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