Hi,
I am running this code in using omnipay and worldpay. For some reason, worldpay does not redirect me to my site after the payment is completed. Any ideas why that would be? The payment is properly recorded in the database. the only feedback from worlpay I get is
This was not a live transaction. No money has changed hands.
Thank you, your payment was successful.
My code is
$payment = Payment::create()->init(‘WorldPay’, 1.5, ‘GBP’);
$payment->SampleRequestID = $request->ID;
$url = Director::protocolAndHost();
$response = PurchaseService::create($payment)
->setReturnUrl($url . $this->Link(’?sent=1’))
->setCancelUrl($url . $this->Link(’?cancelled=1’))
->purchase(array());
$response->redirect();
thanks for the help