valorin Posted February 16, 2009 Share Posted February 16, 2009 I am working on a script which Creates and invoice using the API, and then tells the system to Capture the Payment, again using the API. The Create Invoice function is working without any problems. It sets the right payment method, and returns the invoice number as expected. When I pipe the Invoice number into the Capture payment function, it fails to return any sort of response and does not make payment. The POST data I am sending is: Array ( [action] => capturepayment [invoiceid] => 58079 [username] => <USERNAME> [password] => <PASSWORD> ) The Apache error log gives me the following: [Mon Feb 16 14:17:09 2009] [error] [client <IP>] PHP Fatal error: Call to undefined function getclientsdetails() in /<...>/includes/ccfunctions.php on line 0 We are using the latest version of WHMCS. Any ideas whats wrong? 0 Quote Link to comment Share on other sites More sharing options...
Matt Wade Posted February 16, 2009 Share Posted February 16, 2009 Even if your API call was wrong (I don't think it is) you should never get a PHP Fatal Error. Open a support ticket. They'll take care of you. 0 Quote Link to comment Share on other sites More sharing options...
valorin Posted February 16, 2009 Author Share Posted February 16, 2009 Ticket submitted 0 Quote Link to comment Share on other sites More sharing options...
jdh9812 Posted March 27, 2009 Share Posted March 27, 2009 were you able to get the function up and running? 0 Quote Link to comment Share on other sites More sharing options...
valorin Posted March 29, 2009 Author Share Posted March 29, 2009 Yup, I was given a new copy of the api.php file which resolved the issue for me. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.