mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-09-20 00:11:35 +02:00
Fix for SagePay
This commit is contained in:
parent
c34f585e5e
commit
00cd16c3aa
@ -309,7 +309,12 @@ class BasePaymentDriver
|
|||||||
|
|
||||||
// prepare and process payment
|
// prepare and process payment
|
||||||
$data = $this->paymentDetails($paymentMethod);
|
$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)
|
$response = $gateway->purchase($data)
|
||||||
->setItems($items)
|
->setItems($items)
|
||||||
->send();
|
->send();
|
||||||
|
Loading…
Reference in New Issue
Block a user