Skip to content

Commit

Permalink
Format amount.
Browse files Browse the repository at this point in the history
  • Loading branch information
remcotolsma committed Jul 2, 2021
1 parent 7300c83 commit de8c77e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ public function start( Payment $payment ) {
$transaction = new Transaction();
$transaction->id = uniqid();
$transaction->currency = $payment->get_total_amount()->get_currency()->get_alphabetic_code();
$transaction->amount = $payment->get_total_amount()->get_cents();
$transaction->amount = $payment->get_total_amount()->get_minor_units()->format( 0, '', '' );
$transaction->description = $transaction_description;

switch ( $payment_method ) {
Expand Down

0 comments on commit de8c77e

Please sign in to comment.