Jump to content

Strange problem with custom payment callback


romatr

Recommended Posts

Hi,

 

I'm using code closed to example http://wiki.whmcs.com/API:Example_Usage.

 

This data is using with curl calls to https://www.yourdomain.com/whmcs/includes/api.php (https, not http as in documentation).

$postfields: Array

(

[username] => myadmin

[password] => md5_of_myadmin_password

[action] => addinvoicepayment

[invoiceid] => 93

[amount] => 5

[transid] => 140-948

[gateway] => mygateway

)

 

As a reply from api.php I get empty value, I think I have to get something like this: result=error;message=Some_error_message or result=success;message=Some_success_message. But it simply empty. What the problem?

Link to comment
Share on other sites

if you're getting no responce at all, it means you're either not recording the cURL returned array, or your API page isn't viewable over the https socket. try opening your API page in your browser using HTTP, and using HTTPs. you should get a page saying something like "message=invalid password" or something like that. if it's just blank, you have a problem that's not to do with your code.

Link to comment
Share on other sites

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