sagepay server/session variable problem
Posted: Wed May 05, 2010 9:54 pm
Hi,
I'm making a module for SagePay Server as Opencart doesn't have this as a payment option.
So far it's all ok, but in my callback script, I'm trying to access a session variable for the order which I believe should be in $this->session->data['order_id']
My error log is showing this as an undefined variable, and when I've tried to display this using print_r($this->session->data) it is indeed missing.
This is a problem because I need to update the order status when SagePay's servers run my callback script to say the payment has been successful.
I assumed that as this was a session variable it shouldn't be cleared (unless I specifically coded something to do that, which I haven't done). Can anyone advise on this? It's stopping me getting this module working
I'm making a module for SagePay Server as Opencart doesn't have this as a payment option.
So far it's all ok, but in my callback script, I'm trying to access a session variable for the order which I believe should be in $this->session->data['order_id']
My error log is showing this as an undefined variable, and when I've tried to display this using print_r($this->session->data) it is indeed missing.
This is a problem because I need to update the order status when SagePay's servers run my callback script to say the payment has been successful.
I assumed that as this was a session variable it shouldn't be cleared (unless I specifically coded something to do that, which I haven't done). Can anyone advise on this? It's stopping me getting this module working