Skip to content

Commit 0265b73

Browse files
committed
Do not load script if there is redirect flow setting
1 parent 64f7135 commit 0265b73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Gateways/PaymentMethods/WCGatewayMoneiCC.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public function __construct(
112112
$this->subscriptions_service = $subscriptionService;
113113
$this->handler = $this->subscriptions_service->getHandler();
114114
if ( $this->handler ) {
115-
$this->supports = $this->handler->init_subscriptions($this->supports, $this->id);
115+
$this->supports = $this->handler->init_subscriptions( $this->supports, $this->id );
116116
}
117117

118118
add_action(
@@ -341,7 +341,7 @@ class="wc-block-components-validation-error"
341341
*/
342342
public function monei_scripts() {
343343
// If merchant wants Component CC or is_add_payment_method_page that always use this component method.
344-
if ( $this->redirect_flow || (! is_checkout() && ! is_add_payment_method_page() && ($this->handler && ! $this->handler->is_subscription_change_payment_page() ) ) ) {
344+
if ( $this->redirect_flow || ( ! is_checkout() && ! is_add_payment_method_page() && ( $this->handler && ! $this->handler->is_subscription_change_payment_page() ) ) ) {
345345
return;
346346
}
347347

0 commit comments

Comments
 (0)