Need Buy Now Button Code that passes in OrderID and Price Variables
surfwthsharks
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Apr-01-2011
09:10 PM
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>
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.
Related Content
- Multi-Order Shipping MOS can not import Item # Title N/A from non-ebay transaction. in Shipping (Archive)
- Passing item_name variable to button in Merchant services (Archive)
- Payment Data Transfer (PDT) in Merchant services (Archive)
- Passing specific variables through Paypal in Merchant services (Archive)