ryoyin Posted December 16, 2014 Share Posted December 16, 2014 Hi All, I have 2 questions here. 1. I see there is a $amount and $fee variable defined in the callback demo file. Whats the different? The gateway only return the total_fee. 2. I am working on Alipay cross border gateway. Their return method only for returning to the page, not providing a secure method to validate the payment. To validate the payment. It require another file for notify. WHMCS only accept 1 file callback.php. What should I do? 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted December 16, 2014 Share Posted December 16, 2014 Hi 1. Every gateway has its own callback variables. You have to adapt the script to work with them. Anyway let's say that I'm paying 10 euro with PayPal. It has a fee of 0.35 euro + 3.4%. The result will be $amount = 10 euro and $fee = 0.69 euro. That's it. 2. I did not understand perfectly what you mean. Anyway you should just point to your callback file. If $status is true the client will be redirected to your "OK page". On the contrary if it's false he'll go to "KO page". 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.