Skip to content

Commit 5a7a5e1

Browse files
committed
MAGETWO-92953: Once Payflow Pro payment is Declined, customer cannot continue checkout
1 parent 9262290 commit 5a7a5e1

File tree

1 file changed

+9
-2
lines changed
  • app/code/Magento/Payment/view/frontend/templates/transparent

1 file changed

+9
-2
lines changed

app/code/Magento/Payment/view/frontend/templates/transparent/iframe.phtml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,10 @@ $params = $block->getParams();
6767
'jquery',
6868
'Magento_Checkout/js/model/quote',
6969
'Magento_Checkout/js/action/place-order',
70-
'Magento_Checkout/js/action/redirect-on-success'
70+
'Magento_Checkout/js/action/redirect-on-success',
71+
'Magento_Checkout/js/model/full-screen-loader'
7172
],
72-
function($, quote, placeOrderAction, redirectOnSuccessAction) {
73+
function($, quote, placeOrderAction, redirectOnSuccessAction, fullScreenLoader) {
7374
var parent = window.top;
7475

7576
$(parent).trigger('clearTimeout');
@@ -79,6 +80,12 @@ $params = $block->getParams();
7980
function () {
8081
redirectOnSuccessAction.execute();
8182
}
83+
).fail(
84+
function () {
85+
var parent = window.top;
86+
$(parent).trigger('clearTimeout');
87+
fullScreenLoader.stopLoader();
88+
}
8289
);
8390
}
8491
);

0 commit comments

Comments
 (0)