X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   Ajax Based 'Place Order' functionality (https://forum.x-cart.com/showthread.php?t=72601)

aneel13 08-16-2015 03:55 AM

X-Cart - Seamless payment which doesn't refreshes the checkout page
 
I want to achieve seamless payment functionality which doesn't refreshes the page and keeps the user on the same page and processes the payment when clicking on 'place order' button?

Also at which stage is the order created because soon after that I need to call an external service which is going to return me a url which I will hit in background to confirm the payment. This url will then return back to the xcart site after processing payment but now the order at x-cart remains incomplete and its completed at my service end only.

How to process further when I can only get the payment details on a specific url, so that the order completes in xcart site aswell. What should be the success url, failure url and cancel url?

aneel13 08-16-2015 04:37 AM

Ajax Based 'Place Order' functionality
 
I want the user to stay on the same page when clicking on the place order button for my specific payment method selected and then it processes the data and open the payment wirecard within an iframe or popup and after the payment is also processed then it redirects to success, failure or cancel pages.

How to achieve this?

qualiteam 08-19-2015 10:08 AM

Re: Ajax Based 'Place Order' functionality
 
I think this article on creating custom payment methods for X-Cart 5 may be useful:
http://kb.x-cart.com/display/XDD/Creating+payment+method

Collecting payment information from an Iframe box inside the checkout page is not supported in X-Cart 5 out of the box. You will have to code this logic yourself, unfortunately.

aneel13 08-19-2015 08:22 PM

Re: Ajax Based 'Place Order' functionality
 
Yes, I had been following the same link for my new payment method. Thanks for the info.

Partha x-cart 12-03-2018 12:09 AM

Re: Ajax Based 'Place Order' functionality
 
Is there any way to create order programatically?

smokinghunks 07-17-2020 09:13 AM

Re: Ajax Based 'Place Order' functionality
 
i have exactly the same need to load the place order payment gateway url inside an iframe!! anything ?


All times are GMT -8. The time now is 07:36 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.