Skip to content

Commit

Permalink
fix: remove unecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiano-mallmann committed Oct 28, 2024
1 parent 69377fd commit 42a096c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions src/Block/ReactCheckout/GooglePay.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,6 @@ protected function jsUrl()
{
return false;
}

private function hasSubscriptionInCart()
{
return Subscription::hasSubscriptionProductInCart();
}

public function getAdditionalPaymentMethodData()
{
Expand All @@ -65,7 +60,7 @@ public function getAdditionalPaymentMethodData()
'merchantId' => $this->config->getGooglepayGoogleMerchantId(),
'isSandboxMode' => $this->config->getIsSandboxMode(),
'allowedGoogleBrands' => $this->getGooglepayBrands(),
'hasSubscriptionInCart' => $this->hasSubscriptionInCart()
'hasSubscriptionInCart' => Subscription::hasSubscriptionProductInCart()
];
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ public function jsonSerialize()
$json['operation_type'] = $this->operationType;
$json['recurrency_cycle'] = $this->recurrencyCycle;
$json['recurrence_cycle'] = $this->recurrenceCycle;
$json['payment_origin'] = $this->paymentOrigin;
$json['payment_origin'] = $this->paymentOrigin;

return $json;
}
Expand Down

0 comments on commit 42a096c

Please sign in to comment.