Jump to content

how to recreate "redirecting you to the payment gateway" behavior if i'm using the API


bahaazidan

Recommended Posts

Hello there,

 

I'm developing a client dashboard that'll depend on WHMCS API. in the normal situation when the user selects products to buy and check out his cart, he will be prompted to choose a payment method and then will be redirected to the payment gateway page to actually pay the money. I'm using the API so all I managed to do now is to AddOrder and the response I get is :

 

{
   "result": "success",
   "orderid": 4,
   "productids": "4",
   "addonids": "",
   "domainids": "",
   "invoiceid": 4
}

this did create an order but it didn't do anything with the payment. so my question is:

how recreate the "redirection" while still using the API ? is there a way to make this API call return the link that the user needs to be redirected to?

 

I'm using WorldPay payment gateway in test mode.

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