Need Buy Now Button Code that passes in OrderID and Price Variables

surfwthsharks
Contributor
Contributor

I have created my own shopping card and checkout, just need to know how to pass Price and OrderID to paypal for payment.  Can anyone help me.  

 

I have the OrderID and Price already to go...

 

I tried this, but to no avail...

 

 

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="<?php echo $OrderID;?>">
<input type="hidden" name="hosted_button_id" value="<?php echo $GrandTotal;?>">
<input type="image" src="https://www.paypalobjects.com/WEBSCR-640-20110306-1/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/WEBSCR-640-20110306-1/en_US/i/scr/pixel.gif" width="1" height="1">
</form>

 

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

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