paypal test

The code for the second image has the original target="_top". Clicking the image doesn't work.

In the third image the target is removed. The line becomes <form action="https://www.paypal.com/cgi-bin/webscr" method="post">

Google prevents opening the Paypal page in the same page for security reasons. The line <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top"> Must be changed to <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">. target="new" also works. Removing the target entirely also works. <form action="https://www.paypal.com/cgi-bin/webscr" method="post">

Some people at PayPal understand this but others don't.

Another option is to embed the shareable link if you are offered one instead of embedding the code.

<body>

<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">

<input type="hidden" name="cmd" value="_s-xclick">

<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHTwYJKoZIhvcNAQcEoIIHQDCCBzwCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYBrvi98GoB/0b/XCXH3db/ZsGv26iYbPiKDg9Z8W97NbYzmUfhvFIAltbHZCeV7ZtYAdJ6GNMiAJ274HBEQpz7TIChgjr8ptCjCP3QT/k0ULPKpkIuoYrA3n6EyAuH0Bu8M0nrG3k7GmI1SwOSHypmMWFNSWAOItZLZaaOa99qqjjELMAkGBSsOAwIaBQAwgcwGCSqGSIb3DQEHATAUBggqhkiG9w0DBwQIcNE2478ZDoeAgahJnnoeY4uEh2X8zHxP/9adHy9zzuZ+vvdPX7dCYbJ8kYjLu89SupdL6PBUwTp15JuxikdjIulDVOoXyURPAwzD17e94gflxBJHmHaYwUEyfxon3jfg9kVlUE7VXdBWaLCCPXXktE97bEF9ilmy5wPu+IqluY3JCzKWF7oLpRorRWu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3DQEBBQUAA4GBAIFfOlaagFrl71+jq6OKidbWFSE+Q4FqROvdgIONth+8kSK//Y/4ihuE4Ymvzn5ceE3S/iBSQQMjyvb+s2TWbQYDwcp129OPIbD9epdr4tJOUNiSojw7BHwYRiPh58S1xGlFgHFXwrEBb3dgNbMUa+u4qectsMAXpVHnD9wIyfmHMYIBmjCCAZYCAQEwgZQwgY4xCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEUMBIGA1UEChMLUGF5UGFsIEluYy4xEzARBgNVBAsUCmxpdmVfY2VydHMxETAPBgNVBAMUCGxpdmVfYXBpMRwwGgYJKoZIhvcNAQkBFg1yZUBwYXlwYWwuY29tAgEAMAkGBSsOAwIaBQCgXTAYBgkqhkiG9w0BCQMxCwYJKoZIhvcNAQcBMBwGCSqGSIb3DQEJBTEPFw0xNDAxMDcyMzU3MzlaMCMGCSqGSIb3DQEJBDEWBBSIR106ebYBByTSPhS2majAJ1sFfzANBgkqhkiG9w0BAQEFAASBgEVwbzNWVzN0bgNVKZPDV7y6vLzMtSPkw36sLzr4mK5hCo6R+r/w0QkHRZGqW1WCSUg9fGQr8tVLiOuk4DUZCX8FsuBSqDu88Q93ep3dcecm2bIWFXR/821G9/0FBryQ7woYQ6U+tdthDghFofEtp6ud7Ukah6UVh9pLuBnX2REf-----END PKCS7-----

">

<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">

<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">

</form>

</body>