multidomain Posted November 21, 2012 Share Posted November 21, 2012 Hi Guys, i'm actually a newbie to whmcs. i was trying to integrate with 3rd party payment gateway. my provider already give a test account for me to test on the integration. so far i can see payment made to the gateway is success. i can check on provider system that the payment is valid. but the problem seems when after the payment it will redirect to the client area. from there i can see that the status of the invoice is still unpaid eventhough the payment were loged as success at the gateway. i also check under billing>gateway transaction log and found out the status is stated as unsuccessful. the debug data show all the info needed. even the status code also showing that it is success. however, still whmcs detect it as unsuccessful. please advise how to solve this. thanks. faizal 0 Quote Link to comment Share on other sites More sharing options...
Aniruddh Posted November 21, 2012 Share Posted November 21, 2012 Hello, Please check this documentation: http://docs.whmcs.com/Gateway_Module_Developer_Docs Check the Callback Section and this: Once you have processed the transaction and got a response, you need to return an array to WHMCS with the results. The return for a successful capture should be as follows: return array("status"=>"success","transid"=>$results["transid"],"rawdata"=>$results); Within this array, the status must be success to tell WHMCS the capture was successful, transid should be passed the value of the transaction ID that came back from the gateway, and the rawdata variable should be passed an array of the data returned from the gateway to be stored in the WHMCS Gateway Log. If the transaction were to fail then the response should instead be as follows: return array("status"=>"declined","rawdata"=>$results); 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.