Guest russdn Posted September 24, 2005 Share Posted September 24, 2005 Does anyone know how to do this? In modules/gateway/paypal/transfer.inc.php I changed: $formAction = "https://www.paypal.com/cgi-bin/webscr"; $formMethod = "post"; $formTarget = "_self"; } TO $formAction = "https://www.paypal.com/cgi-bin/webscr"; $formMethod = "post"; $formTarget = "_new"; <-----changed target method to new } AND ALSO $formAction = "https://www.paypal.com/cgi-bin/webscr"; $formMethod = "post"; $formTarget = "_paypal"; <----to this } Both of these changes work fine and launch the paypal payment in a new window BUT it keeps opening new windows, over and over again - so it won't work Does anyone have any ideas? Thanks alot! Russ Quote Link to comment Share on other sites More sharing options...
Guest MASsIVE Posted September 24, 2005 Share Posted September 24, 2005 Are you using CSS for frames?? If you are using CSS for frames this shouldnt be a problem, using actual html frames could be Im aslo thinking about using frames for my new CubeCart but will be using CSS for frames I dont think this will be a prob. Any one else experiencing probs ? Also try this TO $formAction = "https://www.paypal.com/cgi-bin/webscr"; $formMethod = "post"; $formTarget = "_new"; <-----changed target method to new } To TO $formAction = "https://www.paypal.com/cgi-bin/webscr"; $formMethod = "post"; $formTarget = "_blank"; <-----changed target method to new } Quote Link to comment Share on other sites More sharing options...
Guest Posted September 25, 2005 Share Posted September 25, 2005 Why do you need to open PayPal in a new window? With IPN and AutoReturn, your customers are returned to your site when the purchase is complete. Why mess with frames or alternate windows? Quote Link to comment Share on other sites More sharing options...
Guest theorbo Posted September 25, 2005 Share Posted September 25, 2005 You can always use a bit of inline js to open a new window: onclick="window.open(this.href);return false;" Not sure how this would work in your particular situation, but give it a try. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.