From d8b4771c991bd97017d82fbc89f811bd51b11da1 Mon Sep 17 00:00:00 2001 From: Chang Shu-Huai Date: Fri, 11 Aug 2023 22:27:33 +0800 Subject: [PATCH] Refs #37654, Modify newebpay amount format in description. --- civicrm_spgateway/civicrm_spgateway.checkout.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/civicrm_spgateway/civicrm_spgateway.checkout.inc b/civicrm_spgateway/civicrm_spgateway.checkout.inc index bfeb304..69f9ae6 100644 --- a/civicrm_spgateway/civicrm_spgateway.checkout.inc +++ b/civicrm_spgateway/civicrm_spgateway.checkout.inc @@ -130,7 +130,7 @@ function _civicrm_spgateway_order(&$vars, $component, &$payment_processor, $inst $itemDescription = $vars['description']; $itemDescription .= ($vars['description'] == $vars['item_name'])?'':':'.$vars['item_name']; - $itemDescription .= ':'.$vars['amount']; + $itemDescription .= ':'.floatval($vars['amount']); $itemDescription = preg_replace('/[^[:alnum:][:space:]]/u', ' ', $itemDescription); if(!$vars['is_recur']){