Jump to content

Payment Gateway integration


multidomain

Recommended Posts

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

Link to comment
Share on other sites

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);

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