Does the JavaScript SDK integration work with a single page application?

Yes, the JavaScript SDK (iframe and lightbox) integration to our Hosted Payment Pages does work with a single page application. 

For it to work you must add a single line of code to dynamically trigger an event that acts as though the page was reloaded. This will ensure the full page refreshes to redirect the shopper to the correct result URL.

See Worldpay developers for more detailed information.