Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 30395eb

Browse files
MAGETWO-83537: [Backport 2.2] Close PayPal popup window in case of rejected request #10820 #12131
2 parents 12af7a6 + cdefdae commit 30395eb

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)