We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8dcc21c + b2be70d commit 356afa4Copy full SHA for 356afa4
1 file changed
public/class-paystack-forms-public.php
@@ -137,15 +137,15 @@ public function add_for_kobo($amountinkobo)
137
if ($amountinkobo > $this->flatline) {
138
return $amountinkobo + $this->cap;
139
} elseif ($amountinkobo > $this->crossover) {
140
- return round((($amountinkobo + $this->additional_charge) / $this->charge_divider),2);
+ return ceil(($amountinkobo + $this->additional_charge) / $this->charge_divider);
141
} else {
142
- return round(($amountinkobo / $this->charge_divider),2);
+ return ceil($amountinkobo / $this->charge_divider);
143
}
144
145
146
public function add_for_ngn($amountinngn)
147
{
148
- return $this->add_for_kobo(round(($amountinngn * 100),2)) / 100;
+ return $this->add_for_kobo(ceil($amountinngn * 100)) / 100;
149
150
151
0 commit comments