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

Commit cdefdae

Browse files
MAGETWO-83537: [Backport 2.2] Close PayPal popup window in case of rejected request #10820 #12131
- Merge Pull Request magento/magento2#12131 from vovayatsyuk/magento2:fix-opened-paypal-express-in-context-popup-2.2 - Merged commits: 1. f19fa30
2 parents fd8dcad + f19fa30 commit cdefdae

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)