Repository.getConfigForJs(),
]);
- modal.getRoot().on(ModalEvents.outsideClick, (e) => {
- // Prevent closing the modal when clicking outside of it.
- e.preventDefault();
- });
-
modal.getRoot().on(ModalEvents.hidden, () => {
// Destroy when hidden.
modal.destroy();
},
// Finalise the transaction.
onApprove: function(data) {
+ modal.getRoot().on(ModalEvents.outsideClick, (e) => {
+ // Prevent closing the modal when clicking outside of it.
+ e.preventDefault();
+ });
+
modal.setBody(getString('authorising', 'pg_paypal'));
// Call server to validate and capture payment for order.