Have to hit submit twice

allegra09
New Community Member

When I hit the submit button (i changed it from the buy now button) it reloads the same page. When I hit it again from the reloaded page, it then takes me to paypal!

Help!

 

www.michelleblairphotography.com

Login to Me Too
1 REPLY 1

snowshoe
Frequent Advisor
Frequent Advisor

Where's the location of item button code, been to your site, don't know where the code is?   No worries, sounds like you missed something in your coding.  See the Buy Now example below, it uses the Submit button instead of a graphic.  Note, the example is a complete web page, all you have to do is copy the code , then replace the business variable value with your PayPal account email address or Account ID and save it as test.htm, last, open it with your web browser.  Should give you an idea of how to fix your issue.

 

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="description" content="">
    <meta name="keywords" content="">
    <title></title>
    
    
  </head>
  <body>

<!-- Start of Form -->
Widget - $5.00

<br><br>

<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<!-- If using a Business or Company Logo Graphic, include the "cpp_header_image" variable in your View Cart code. -->
<input type="hidden" name="cpp_header_image" value="https://static.e-junkie.com/sslpic/86639.7c555e9a35606a4c310ad6ce4e465d50.jpg">
<input type="hidden" name="cmd" value="_xclick">
<!-- Replace "business" value with your PayPal Email Address or Account ID -->
<input type="hidden" name="business" value="your email address @ yado.com">
<input type="hidden" name="item_name" value="Widget">
<input type="hidden" name="item_number" value="W-1001">
<input type="hidden" name="amount" value="5.00">
<input type="hidden" name="no_shipping" value="2">
<!-- Replace value with the web page you want the customer to return to after a successful transaction -->
<input type="hidden" name="return" value="http://www.jkstudiollc.com/ZZcode/ThankYou.html">
<!-- Replace value with the web page you want the customer to return to after item cancellation -->
<input type="hidden" name="cancel_return" value="http://www.jkstudiollc.com/ZZcode/Cancel.html">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="weight" value="1">
<input type="hidden" name="weight_unit" value="lbs">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="button_subtype" value="products">
<input type="hidden" name="no_note" value="0">
<input type="hidden" name="cn" value="Add special instructions to the seller:">
<input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynow_LG.gif:NonHosted">
<input type="submit" name="submit" value="submit">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
<!-- End of Form -->
  
</body>
</html>

 

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.