Search code examples
javascriptjqueryfancyboxworldpay

fancybox and worldpay


I am working with a website today, that requires me to integrate worldpay into, via a buy now button, the budget does not allow for a huge amount of design work, so I am thinking of integrating the world pay steps into a nice overlay, and then just having nicely styled forms.

My problem is that alot of the javascript that worldpay provides to use it's forms uses the open() function. This closes fancybox and opens the next step in new tab, is there a way around this? Maybe another function?


Solution

  • you could "enjoy" editing the worldpay templates and change the javascript to load the next page via ajax and your fancybox could watch that and change it's content.

    another solution is to use an iframe and style it so that it looks seamless. you might still have to remove headers and footers from the worldpay themes for it to work.