I thought you said this was happening on the remote server.
t looks like you are using paypal pro for the checkout with the modal window option, for this to work, it needs to be on an SSL Enabled server through https which you won't be able to test locally.