WHMCS Integration , Support Ticket Submitting issues, 400--Bad Request Error


I have whmcs integration working (at least in part). Ordering works and I have two issues with Support Tickets:

1- Source IP of the Ticket is set to the Server IP, Not client's.
2-After Submitting the ticket I get this error on all over the page:
WHMCS Integration: 400—Bad Request
But the ticket is submitted.