$params['fee_amount'] = $result['feeamt'];
$params['net_amount'] = CRM_Utils_Array::value('settleamt', $result);
if ($params['net_amount'] == 0 && $params['fee_amount'] != 0) {
- $params['net_amount'] = $params['gross_amount'] - $params['fee_amount'];
+ $params['net_amount'] = number_format(($params['gross_amount'] - $params['fee_amount']), 2);
}
$params['payment_status'] = $result['paymentstatus'];
$params['pending_reason'] = $result['pendingreason'];
$params['fee_amount'] = $result['feeamt'];
$params['net_amount'] = $result['settleamt'];
if ($params['net_amount'] == 0 && $params['fee_amount'] != 0) {
- $params['net_amount'] = $params['gross_amount'] - $params['fee_amount'];
+ $params['net_amount'] = number_format(($params['gross_amount'] - $params['fee_amount']), 2);
}
$params['payment_status'] = $result['paymentstatus'];
$params['pending_reason'] = $result['pendingreason'];