Angular JS - shop data disapears after using external payment script

Posted by rZaaaa on Programmers See other posts from Programmers or by rZaaaa
Published on 2014-08-19T22:28:56Z Indexed on 2014/08/19 22:31 UTC
Read the original article Hit count: 152

Filed under:

Im building a shopping cart in angular JS. till now all goes good but now i am at the checkout phase of y project.

The problem is that im using external payment gateways such as ideal etc. when i checkout using for example Ideal the page redirects to the login page of the bank. All i have is a return url

When i get to the return url al angular data is gone... I dont know how to do this properly. Also when i checkout and from the back page hit BACK again. the data is also gone and i have to do all the steps again, fill cart etc.

So i gues i have to do something with sessions but what is the best way with angular JS how can i do this?

The php backend is a slim framework.

In the php version of my website i use the session generate id for the "lost" carts. is a user comes back, this session would be the same so i can retrieve his data (other session variables) ...

© Programmers or respective owner

Related posts about angularjs