Closed thestick613 closed 5 years ago
Hi @thestick613 , Thanks for opening this bug. Could you please write the version you're using of WHMCS? What steps did you take in order to reproduce this issue?
Best regards, SerHack
The version of WHMCS is 7.6.1 - General Release - 7.6.1-release.1. I have the WHMCS instance on the y.y.y.y server and the monero tools on another server, x.x.x.x.
I first ran on x.x.x.x:
./monero-wallet-cli --daemon-address node.moneroworld.com:18089
and created a new wallet called mywallet.txt, and then i ran
/home/user/monero-v0.13.0.4/monero-wallet-rpc --rpc-bind-port 80 --rpc-login user:pass --log-level 3 --wallet-file mywallet.txt --daemon-address node.moneroworld.com:18089 --password walletpassword --rpc-bind-ip x.x.x.x --confirm-external-bind --rpc-access-control-origins y.y.y.y
I've put all this data in the whmcs monero payment gateway module, and then tested it all out. The first error i got was connection refused, but it was caused by the firewall, which now has been solved. I can confirm that the connection is taking place between the whmcs instance and the monero json rpc server.
Upon further searching with a HTTP sniffer, a "working" rpc clients posts to this url
POST /json_rpc HTTP/1.1
But the php code posts here
POST /x.x.x.x:80/json_rpc HTTP/1.1
Any idea if this code ever worked?
The url is composed by this:
It worked but I think there could be a compatibility issue. I do not know why it's sending POST through the /x.x.x.x:80/. Is your base URL your website or IP you set up?
It's an IP. I'll try with a hostname.
Same
POST /myhostname.monero.something.com:80/json_rpc HTTP/1.1
In the monero rpc i have the following log: