Skip to content

Commit

Permalink
Update usage of removed Money::get_cents() to `Money::get_minor_uni…
Browse files Browse the repository at this point in the history
…ts()->to_int()`.
  • Loading branch information
rvdsteege committed Jul 23, 2021
1 parent 4a0bea9 commit 4e21106
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Gateway.php
Expand Up @@ -116,7 +116,7 @@ public function start( Payment $payment ) {
$price = null;

if ( null !== $line->get_unit_price() ) {
$price = $line->get_unit_price()->get_including_tax()->get_cents();
$price = $line->get_unit_price()->get_including_tax()->get_minor_units()->to_int();
}

$order_data[] = array(
Expand Down

0 comments on commit 4e21106

Please sign in to comment.