View Single Post
  #5  
Old 07-05-2016, 01:19 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

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

Default Re: Popup custom payment module is posting and redirecting

state.state determines whether the order can be placed, or not. If you set it to false the order will never be placed.
Stripe module sets this property to false if the module is enabled, but the token from Stripe is empty.

The recommended way to initialize the JS part of your integration is hooking to the checkout.paymentTpl.postprocess event (like Stripe does).

Where does the redirect happens to? Does it submit to the payment gateway's server? If so, you should either put that into an IFRAME, or use the standard flow for web-redirect based integrations (without any background checks).
__________________
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