Jump to content

Cookie key not persisting across calls


vivekkhurana

Recommended Posts

Hello,

 

 I am developing a mobile app for prestashop. In our installation we have a payment gateway that does not have mobile sdk and provides web only payment method. In this gateway the user is redirected to the gateway page and payment is processed there. Now to integrate this gateway we loaded the gateway in the webview and set a key in the cookie to mark that it is mobile based payment. Here is the code in the prestashop module front controller to set the cookie

 

$this->context->cookie->__set("mobilepayment",1); 

 

 This front controller is loaded in the webview from the android app and front controller redirects the user to mobile gateway. Now the problem is when a response comes from the payment gateway and I try to access "mobilepayment" key from the cookie, the key is not present. Why is this ? 

 Also, is there an alternate way to store a variable value across calls ?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...