Просмотр исходного кода

Maj V3 Sumup

feature/rotating_product
Guillaume Bourgeois 8 месяцев назад
Родитель
Сommit
88021650f8
1 измененных файлов: 11 добавлений и 6 удалений
  1. +11
    -6
      domain/Order/Order/TillerManager.php

+ 11
- 6
domain/Order/Order/TillerManager.php Просмотреть файл

@@ -142,6 +142,16 @@ class TillerManager extends AbstractManager
if (!$this->isSynchronized($date, $order->id)) {
// v3
if($apiVersion == 'v3') {

$payments = [];
$amountPayment = round($this->orderSolver->getOrderAmountWithTax($order, Order::AMOUNT_PAID) * 100);
if($amountPayment) {
$payments[] = [
'externalId' => ''.$order->id,
'amount' => $amountPayment
];
}

$returnTiller = $this->tillerClient->postOrder([
'externalId' => ''.$order->id,
'purchaseRequestType' => 'clickAndCollect',
@@ -149,12 +159,7 @@ class TillerManager extends AbstractManager
'order' => [
'currencyCode' => 'EUR',
'itemLines' => $lines,
'payments' => [
[
'externalId' => ''.$order->id,
'amount' => round($this->orderSolver->getOrderAmountWithTax($order, Order::AMOUNT_PAID) * 100),
]
]
'payments' => $payments
]
]);
}

Загрузка…
Отмена
Сохранить