From 4e21106b97318cb47dbcc8074ce1653481e150ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reu=CC=88el=20van=20der=20Steege?= Date: Fri, 23 Jul 2021 15:59:09 +0200 Subject: [PATCH] Update usage of removed `Money::get_cents()` to `Money::get_minor_units()->to_int()`. --- src/Gateway.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Gateway.php b/src/Gateway.php index adf65ee..213f1b4 100644 --- a/src/Gateway.php +++ b/src/Gateway.php @@ -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(