Skip to content

Commit 52af44b

Browse files
committed
[fix] capture entire amount with subunits, not only integer
1 parent 9562905 commit 52af44b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

upload/includes/modules/payment/paylike.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ function after_process() {
320320
$amount = end($order_totals);
321321
$apps = $paylike->transactions();
322322
$apps->capture($transactionId, [
323-
'amount' => (int)number_format($amount['value'] * $order->info['currency_value'], 2, '.', '') * 100,
323+
'amount' => (float)number_format($amount['value'] * $order->info['currency_value'], 2, '.', '') * 100,
324324
'currency' => $order->info['currency'],
325325
'descriptor' => $descriptor
326326
]);

0 commit comments

Comments
 (0)