I am trying to implement a credit card payment extension.
The payment process is the following:
- the user confirms the order at checkout;
- the user is redirected to the credit card gateway page that has the card details form;
- the user fills the card details and confirms;
- the user is redirected by the payment gateway back to the store, either to a success page or a failure page (default of opencart);
The problem is that, on the very last step, when the user is back at the store success or failure page, he/she is no longer logged in.
I have read some other posts, but they seem to mention changing the core, which I can't.
The URL is correct because I do get redirected to the correct page.
I have also fiddled with login_token to see if maybe if I passed it as an argument, it would fix it, but that did nothing.
These are the URLs I am passing as arguments to the gateway, I have also tried using false for the javascript boolean...
Code: Select all
$successCallbackUrl = $this->url->link('extension/myPex/payment/ccard.callback', '', true);
$errorCallbackUrl = $this->url->link('extension/myPex/payment/ccard.callback', '', true);
$cancelCallbackUrl = $this->url->link('extension/myPex/payment/ccard.callback', '', true);
I appreciate all the help I can get
