Skip to content

Commit 4b5b2a2

Browse files
MAGETWO-72428: Close PayPal popup window in case of rejected request magento#10820
2 parents 3d467c7 + d63827d commit 4b5b2a2

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)