mirror of
https://github.com/itflow-org/itflow
synced 2026-09-22 22:51:17 +00:00
Potential fix for Stripe charges being off by a cent
This commit is contained in:
@@ -953,7 +953,7 @@ while ($row = mysqli_fetch_assoc($sql_recurring_payments)) {
|
||||
|
||||
try {
|
||||
$payment_intent = $stripe->paymentIntents->create([
|
||||
'amount' => intval($balance_to_pay * 100),
|
||||
'amount' => intval(round($balance_to_pay * 100)),
|
||||
'currency' => $recurring_payment_currency_code,
|
||||
'customer' => $stripe_customer_id,
|
||||
'payment_method' => $stripe_payment_method_id,
|
||||
|
||||
Reference in New Issue
Block a user