Jump to content

API: CapturePayment not working


valorin

Recommended Posts

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?

Link to comment
Share on other sites

  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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