Skip to content

Commit 4d14b3d

Browse files
Fix unhandling of currency in doPayment
The switch to rounding accidentally brought in formatting too
1 parent 6dd8e6f commit 4d14b3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CRM/Core/Payment/OmnipayMultiProcessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ protected function getCreditCardOptions(array $params): array {
589589
$participantID = $params['participantID'] ?? NULL;
590590
$eventID = $params['eventID'] ?? NULL;
591591
$creditCardOptions = [
592-
'amount' => \Civi::format()->moneyNumber($params['amount'], $this->getCurrency($params)),
592+
'amount' => \Civi::format()->machineMoney($params['amount'], $this->getCurrency($params)),
593593
'currency' => $this->getCurrency($params),
594594
'description' => substr(($params['description'] ?? ''), 0, 64),
595595
'transactionId' => $this->formatted_transaction_id,

0 commit comments

Comments
 (0)