Jump to content

How can i complete a payment from remote api?


conecta6

Recommended Posts

Hi, i'm working in a full ajax whmcs remote cart for a product landing page. I cant see in remote apy any method for complete a payment, for example in my form i get all credit card data and i want send to remote whmcs for process order and payment. How can i do this?

thanks

Link to comment
Share on other sites

I don't think this is possible and probably because of security concerns.

 

There is this:

https://developers.whmcs.com/api-reference/capturepayment/

 

But the customer probably needs to have the CC details already saved in the account. If this was possible, it could potentially be used to try to pass fraudulent orders to WHMCS from an external page. So I guess this is why you can't send CC details and because it probably can lead to sending it a insecure way. I'm not sure to be honest but I don't think most WHMCS customers want users saving their CC details outside of WHMCS.

 

Now there is no need to do this either. What is wrong with making your landing page in WHMCS? You can make a template, check cart template files and then the customers would order directly on WHMCS. Now if your landing page is on another server as opposed to the one WHMCS is hosted, that is the only reason why I see you would prefer the API as its an external server with no direct access. In that case that is probably the reason its not available. Depending on the merchant system you are using you could probably still do this by using their own API to bill the card, then pass the payment API to WHMCS to mark the order as paid. The only drawback is that the card would not be available inside the WHMS customer account after that.

 

I suspect there is no API for this because every payment company handles cards differently and most of them have their own different API calls to do this independently of WHMCS. WHMCS is not a payment gateway, it actually just uses the merchant API, so you could do the same directly without WHMCS.

Link to comment
Share on other sites

I don't think this is possible and probably because of security concerns.

 

There is this:

https://developers.whmcs.com/api-reference/capturepayment/

 

But the customer probably needs to have the CC details already saved in the account. If this was possible, it could potentially be used to try to pass fraudulent orders to WHMCS from an external page. So I guess this is why you can't send CC details and because it probably can lead to sending it a insecure way. I'm not sure to be honest but I don't think most WHMCS customers want users saving their CC details outside of WHMCS.

 

Now there is no need to do this either. What is wrong with making your landing page in WHMCS? You can make a template, check cart template files and then the customers would order directly on WHMCS. Now if your landing page is on another server as opposed to the one WHMCS is hosted, that is the only reason why I see you would prefer the API as its an external server with no direct access. In that case that is probably the reason its not available. Depending on the merchant system you are using you could probably still do this by using their own API to bill the card, then pass the payment API to WHMCS to mark the order as paid. The only drawback is that the card would not be available inside the WHMS customer account after that.

 

I suspect there is no API for this because every payment company handles cards differently and most of them have their own different API calls to do this independently of WHMCS. WHMCS is not a payment gateway, it actually just uses the merchant API, so you could do the same directly without WHMCS.

 

Rather informative case 4 SerfCompany

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