Jump to content

My site uses frames...Paypal can't use frames


Guest russdn

Recommended Posts

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

Link to comment
Share on other sites

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

}

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...