Jump to content

Question about 3rd party gateway variable and return


ryoyin

Recommended Posts

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?

Link to comment
Share on other sites

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".

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