update flat voucher

This commit is contained in:
franknstayn
2021-12-23 22:01:02 +08:00
parent 0973ea08b2
commit 9917f8b33e
4 changed files with 66 additions and 23 deletions

View File

@@ -321,10 +321,15 @@ class PaypalController extends Controller
$m->updateVoucherValueInCart($data, $item_id);
} else {
$voucherData = array(
'totalValue' => $totalValue,
'type' => 'Flat'
$data = array(
'Price' => round($totalValue * -1, 2)
);
$m->updateVoucherValueInCart($data, $item_id);
// $voucherData = array(
// 'totalValue' => $totalValue,
// 'type' => 'Flat'
// );
}
}