On the paypal button click the post request is sent to server and the server is returning the data . However the paypal popup window does not open . I have tested on chrome and IE works fine there. Sorry for bad english paypal.Button.render({ env: 'sandbox', commit: true, payment: function() { var CREATE_PAYMENT_URL = '{{Config::get('constants.ABSOLUTE_SITE_URL') }}/paypal-accesstoken.html'; return paypal.request.post(CREATE_PAYMENT_URL) .then(function(data) { return data.id; }); }, onAuthorize: function(data, actions) { return actions.redirect(); }, onCancel: function(data, actions) { return actions.redirect(); }, onError: function(err) { alert('Something went wrong. Please reload the page and try again.'); } }, '#paypal-button');
... View more