I'm struggling with Omnipay and Sagepay Server. The Omnipay example code doesn't work with Sagepay Server as the final steps are completed by Sagepay and not the client, and as such can't access session data.
The transaction is registered:
$response = $this->gateway->purchase($params)->send();
The client is redirected to Sagepay:
$response->redirect();
The purchase should then be completed by Sagepay:
$gateway->completePurchase($params)->send();
$gateway->confirm(URL::to('checkout/complete'));
However, $params isn't set. I'm unsure get the transaction parameters details again without a session. Or if I cache $params, how the cache can be retrieved by Sagepay.
Any help will be very appreciated!
Thanks