Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinwy committed Dec 17, 2024
1 parent e2aa0dd commit 3b57017
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions includes/class-wc-gateway-komoju-single-slug.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,22 +131,22 @@ 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' => [
'woocommerce_note' => 'This session is only for rendering inline fields, and will not be completed.',
],
];

if ($orderTotal == 0) {
if ($order_total == 0) {
return null;
}

Expand Down

0 comments on commit 3b57017

Please sign in to comment.