Commit 24448307 authored by ErikHommel's avatar ErikHommel
Browse files

fixing total fee stuff

parent 8699be40
......@@ -210,8 +210,9 @@ class CRM_Koalecttocivi_KoalectTransaction {
if (!empty($incomingParams['total_fee'])) {
$totalFee = (int) $incomingParams['total_fee'];
Civi::log()->debug('total fee is nu: ' . $totalFee);
$fee = $totalFee['total_fee'] / 100;
$data['total_fee'] = round($fee, 2);
$totalFee = $totalFee / 100;
$data['total_fee'] = round($totalFee, 2);
Civi::log()->debug('total fee is na afloop: ' . $data['total_fee']);
}
if (!empty($incomingParams['stripe_payout_net'])) {
$stripeNet = (int) $incomingParams['stripe_payout_net'] / 100;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment