Skip to content

Commit 6a7ee81

Browse files
committed
Close PayPal popup window in case of rejected request
1 parent 5973d67 commit 6a7ee81

File tree

1 file changed

+3
-1
lines changed
  • app/code/Magento/Paypal/view/frontend/web/js/view/payment/method-renderer/in-context

1 file changed

+3
-1
lines changed

app/code/Magento/Paypal/view/frontend/web/js/view/payment/method-renderer/in-context/checkout-express.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ define(
7878
$('body').trigger('processStop');
7979
customerData.invalidate(['cart']);
8080
});
81-
}.bind(this));
81+
}.bind(this)).fail(function() {
82+
paypalExpressCheckout.checkout.closeFlow();
83+
});
8284
}
8385
}
8486
}

0 commit comments

Comments
 (0)