Fix for SagePay
This commit is contained in:
parent
064072ca06
commit
e4fb7faacc
1 changed files with 6 additions and 1 deletions
|
|
@ -309,7 +309,12 @@ class BasePaymentDriver
|
|||
|
||||
// prepare and process payment
|
||||
$data = $this->paymentDetails($paymentMethod);
|
||||
$items = $this->paymentItems();
|
||||
// TODO move to payment driver class
|
||||
if ($this->isGateway(GATEWAY_SAGE_PAY_DIRECT) || $this->isGateway(GATEWAY_SAGE_PAY_SERVER)) {
|
||||
$items = null;
|
||||
} else {
|
||||
$items = $this->paymentItems();
|
||||
}
|
||||
$response = $gateway->purchase($data)
|
||||
->setItems($items)
|
||||
->send();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue