diff --git a/Plugins/magento/magento23_vivawallet/Ced/VivaPayments/Model/PaymentMethod.php b/Plugins/magento/magento23_vivawallet/Ced/VivaPayments/Model/PaymentMethod.php index 4cdd3d15..2dc07b61 100644 --- a/Plugins/magento/magento23_vivawallet/Ced/VivaPayments/Model/PaymentMethod.php +++ b/Plugins/magento/magento23_vivawallet/Ced/VivaPayments/Model/PaymentMethod.php @@ -88,8 +88,8 @@ public function getPostHTML($order, $storeId = null) $mref = "REF".substr(md5(uniqid(rand(), true)), 0, 9); $TmSecureKey = 'd2ViaXQuYnovbGljZW5zZS50eHQ='; - $charge = $order->getGrandTotal(); - $amountcents = round($order->getGrandTotal() * 100); + $charge = $order->getBaseGrandTotal(); + $amountcents = round($order->getBaseGrandTotal() * 100); $MerchantID = $this->getConfigData('merchantid'); $Password = $this->getConfigData('merchantpass'); $trlang = $this->_localeResolver->getLocale();