diff --git a/includes/class-wc-gateway-komoju-single-slug.php b/includes/class-wc-gateway-komoju-single-slug.php index 52f9196..ab13a02 100644 --- a/includes/class-wc-gateway-komoju-single-slug.php +++ b/includes/class-wc-gateway-komoju-single-slug.php @@ -131,14 +131,14 @@ public function create_session_for_fields() { $komoju_api = $this->komoju_api; $currency = get_woocommerce_currency(); - $orderTotal = 0; + $order_total = 0; if (WC()->cart) { - $orderTotal = $this->get_order_total(); + $order_total = $this->get_order_total(); } $session_params = [ - 'amount' => self::to_cents($orderTotal, $currency), + 'amount' => self::to_cents($order_total, $currency), 'currency' => $currency, 'default_locale' => self::get_locale_or_fallback(), 'metadata' => [ @@ -146,7 +146,7 @@ public function create_session_for_fields() ], ]; - if ($orderTotal == 0) { + if ($order_total == 0) { return null; }