Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Ajax Based 'Place Order' functionality

 
Reply
   X-Cart forums > X-Cart 5 > Modifying the design and features (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 08-16-2015, 03:55 AM
  aneel13's Avatar 
aneel13 aneel13 is offline
 

Senior Member
  
Join Date: Jul 2015
Location: Dubai
Posts: 148
 

Default 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?
__________________
Regards,
Aneel Sarwar
X-Cart version: 5.2.10
Windows: 7
Modules: Free version modules
Reply With Quote
  #2  
Old 08-16-2015, 04:37 AM
  aneel13's Avatar 
aneel13 aneel13 is offline
 

Senior Member
  
Join Date: Jul 2015
Location: Dubai
Posts: 148
 

Default 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?
__________________
Regards,
Aneel Sarwar
X-Cart version: 5.2.10
Windows: 7
Modules: Free version modules
Reply With Quote
  #3  
Old 08-19-2015, 10:08 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default 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.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote

The following user thanks qualiteam for this useful post:
aneel13 (08-19-2015)
  #4  
Old 08-19-2015, 08:22 PM
  aneel13's Avatar 
aneel13 aneel13 is offline
 

Senior Member
  
Join Date: Jul 2015
Location: Dubai
Posts: 148
 

Default Re: Ajax Based 'Place Order' functionality

Yes, I had been following the same link for my new payment method. Thanks for the info.
__________________
Regards,
Aneel Sarwar
X-Cart version: 5.2.10
Windows: 7
Modules: Free version modules
Reply With Quote
  #5  
Old 12-03-2018, 12:09 AM
 
Partha x-cart Partha x-cart is offline
    
Join Date: Dec 2018
Posts: 1
 

Default Re: Ajax Based 'Place Order' functionality

Is there any way to create order programatically?
__________________
X-cart version 4.7.10
Reply With Quote
  #6  
Old 07-17-2020, 09:13 AM
 
smokinghunks smokinghunks is offline
 

Newbie
  
Join Date: Apr 2014
Posts: 3
 

Default Re: Ajax Based 'Place Order' functionality

i have exactly the same need to load the place order payment gateway url inside an iframe!! anything ?
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Modifying the design and features (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 08:56 PM.

   

 
X-Cart forums © 2001-2020