strifemit Posted September 14, 2017 Share Posted September 14, 2017 Hi I have this code from PayPal which works. I want to centre the button and also make it open another browser with the link. How do I add this in because I cannot get it to work. I removed a lot of the code which was not necessary for security reasons. <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top"> <input type="hidden" name="cmd" value="_s-xclick"> <input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHFgYJKoZIhvcNAQcEoIIHBzCCBwMCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgtLaxDweOeOrd9s7gfqe5/CPZ-----END PKCS7-----"> <input type="image" src="https://www.bestepeople.com/wp-content/uploads/button_paypal.png" 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> Link to comment Share on other sites More sharing options...
dsonesuk Posted September 14, 2017 Share Posted September 14, 2017 Wrap the button in a div element and apply text-align: center; to this div. To new browser? Do you mean return to specific page in same browser, on completion of payment? You need code from paypal which u add your url you wish the page to return to. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now