浏览代码

Maj V3 Sumup

feature/rotating_product
Guillaume Bourgeois 9 个月前
父节点
当前提交
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
]
]);
}

正在加载...
取消
保存