File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
app/code/Magento/Paypal/view/frontend/web/js/view/payment/method-renderer Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ define(
50
50
*/
51
51
placePendingPaymentOrder : function ( ) {
52
52
if ( this . placeOrder ( ) ) {
53
+ fullScreenLoader . startLoader ( ) ;
53
54
this . isInAction ( true ) ;
54
55
// capture all click events
55
56
document . addEventListener ( 'click' , iframe . stopEventPropagation , true ) ;
@@ -61,6 +62,7 @@ define(
61
62
return this . _super ( )
62
63
. fail (
63
64
function ( ) {
65
+ fullScreenLoader . stopLoader ( ) ;
64
66
self . isInAction ( false ) ;
65
67
document . removeEventListener ( 'click' , iframe . stopEventPropagation , true ) ;
66
68
}
@@ -71,7 +73,15 @@ define(
71
73
* After place order callback
72
74
*/
73
75
afterPlaceOrder : function ( ) {
76
+ if ( this . iframeIsLoaded ) {
77
+ document . getElementById ( this . getCode ( ) + '-iframe' )
78
+ . contentWindow . location . reload ( ) ;
79
+ }
80
+
74
81
this . paymentReady ( true ) ;
82
+ this . iframeIsLoaded = true ;
83
+ this . isPlaceOrderActionAllowed ( true ) ;
84
+ fullScreenLoader . stopLoader ( ) ;
75
85
} ,
76
86
77
87
/**
You can’t perform that action at this time.
0 commit comments