html - Paying for multiple items (at once) via paypal -


i have list of products i'd add "pay now" button can allow customers pay via paypal.

i've gone through documentation , can't find how this. can add multiple items, not going handy have list of items process. need checkout process itemize order, "buy now" 1 price no either.

any appreciated guys, tried (with no luck):

<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_cart"> <input type="hidden" name="business" value="email@domain.com"> <input type="hidden" name="lc" value="gb"> <input type="hidden" name="item_name" value="test 1"> <input type="hidden" name="item_number" value="1"> <input type="hidden" name="item_name2" value="test 2"> <input type="hidden" name="item_number2" value="2"> <input type="hidden" name="item_name3" value="test 3"> <input type="hidden" name="item_number3" value="3"> <input type="hidden" name="amount" value="99.00"> <input type="hidden" name="currency_code" value="gbp"> <input type="hidden" name="button_subtype" value="products"> <input type="hidden" name="no_note" value="0"> <input type="hidden" name="add" value="1"> <input type="hidden" name="bn" value="pp-shopcartbf:btn_cart_lg.gif:nonhostedguest"> <input type="image" src="https://www.paypal.com/en_gb/i/btn/btn_cart_lg.gif" border="0" name="submit" alt="paypal - safer, easier way pay online."> <img alt="" border="0" src="https://www.paypal.com/en_gb/i/scr/pixel.gif" width="1" height="1"> </form> 

see sample , make changes yours accordingly. add underscore item name before number , give unique name amount underscore , number.

you have give amount each item based on carts totals.

<form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_cart"> <input type="hidden" name="upload" value="1"> <input type="hidden" name="business" value="youremail@mail.com"> <input type="hidden" name="currency_code" value="us">  <input type="hidden" name="item_name_1" value="beach ball"> <input type="hidden" name="amount_1" value="15">  <input type="hidden" name="item_name_2" value="towel"> <input type="hidden" name="amount_2" value="20">  <input type="image" src="http://www.paypal.com/en_us/i/btn/x-click-but01.gif" name="submit" alt="make payments paypal - it's fast, free , secure!"> </form> 

specify quantity(optional)

<input type="hidden" name="quantity_1" value="1"> 

Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -