Skip to content

Commit 64f7135

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Gateways/PaymentMethods/WCGatewayMoneiCC.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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)