Paypal button link not going to...

User 187934 Photo


Senior Advisor
20,271 posts

Yes the code I provided should submit the paypal button when the user lands on the page and it loads. I didn't test it but give it a try.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 516429 Photo


Registered User
83 posts

Hi Eric, I'm a bit lost on this. It goes to the page but displays the Paypal button and the form info but doesn't submit the Paypal page. What am I missing? Thanks!

Here is what I put into the Redirect to Custom HTML Page:

<!DOCTYPE html>
<html dir="ltr" lang="en">
<head>

<script>
window.onload = function(){
document.forms['send-money4'].submit()
}
</script>


<title>Success!</title>
<meta charset="utf-8">
<style type="text/css">
body {background: #f9f9f9;padding-left: 11%;padding-top: 7%; padding-right: 2%;max-width:700px;font-family: Helvetica, Arial;}
table{width:80% !important;}
p{font-size: 16px;font-weight: bold;color: #666;}
h1{font-size: 60px !important;color: #ccc !important;margin:0px;}
h2{font-size: 28px !important;color: #666 !important;margin: 0px; border-bottom: 1px dotted #00A2FF; padding-bottom:3px;}
h3{font-size: 16px; color: #a1a1a1; border-top: 1px dotted #00A2FF; padding-top:1.7%; font-weight: bold;}
h3 span{color: #ccc;}
td {font-size: 12px !important; line-height: 30px; color: #666 !important; margin: 0px;border-bottom: 1px solid #e9e9e9;}
td:first-child {font-size: 13px !important; font-weight:bold; color: #333 !important; vertical-align:text-top; min-width:50%; padding-right:5px;}
a:link {color:#666; text-decoration:none;} a:visited {color:#666; text-decoration:none;} a:hover {color:#00A2FF;}
</style>
</head>


<body>


<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="hosted_button_id" value="998RHAQ7AJDMS">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_paynowCC_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>





<h1>Thanks! </h1>
<h2>The form is on its way.</h2>
<p>Here&rsquo;s what was sent:</p>
<div>[_form_results_]</div>
<!-- link back to your Home Page -->
<h3>Let&rsquo;s go <span> <a target="_blank" href="http://www.coffeecup.com">Back Home</a></span></h3>
</body>
</html>
User 187934 Photo


Senior Advisor
20,271 posts

For me it redirected directly to Paypal but didn't fill in the amount. Let me test a few things.
Can I have a link to your page with the Paypal button on it?
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 516429 Photo


Registered User
83 posts

I think you tried the sendmoney.html page. That one redirects via the paypal link and am using it until I get the one with the forwarding script working. My test page for using the script is: http://www.whiteoconnellphoto.com/send- … oney4.html
This one goes to the page with the paypal button but it's supposed to forward to Paypal with the amount
User 187934 Photo


Senior Advisor
20,271 posts

You forgot to add the name attribute to your Paypal button.
<form target="_top" name="send-money4" method="post" action="https://www.paypal.com/cgi-bin/webscr">
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 516429 Photo


Registered User
83 posts

Well that did forward it to paypal but still no amount in the payment box?
User 187934 Photo


Senior Advisor
20,271 posts

I would check your Paypal button settings as the amount doesn't get filled in when you actually click the button.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 516429 Photo


Registered User
83 posts

I just added the "<input type="hidden" name="amount" value="0.00">" to the form below. I think it's in the wrong place. Should it go in the <form target .... code? If so, how would I put it in?
Thanks!




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


<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="amount" value="0.00">


<input type="hidden" name="hosted_button_id" value="998RHAQ7AJDMS">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_paynowCC_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>
User 187934 Photo


Senior Advisor
20,271 posts

You need to set the button up on Paypal and copy the button code they provide. Then add the name attribute as I posted.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 516429 Photo


Registered User
83 posts

Isn't that what I have in the form action section above? I got that from PayPal. I added the input amount separately because there was no place to put it on Paypals website

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.