Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Paying for multiple items (at once) via paypal

I have a list of products that I'd like to add a "pay now" button to so that I can allow my customers to pay via Paypal.

I've gone through the documentation and can't find how to do this. I can add multiple items, but this is not going to be handy as I already have the list of items to process. I also need the checkout process to itemize the order, so a "buy now" with 1 price is no good either.

Any help appreciated guys, I 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 protected]"> <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 - The safer, easier way to pay online."> <img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1"> </form> 
like image 965
mononym Avatar asked Jul 22 '10 12:07

mononym


People also ask

Can you do multiple payments on PayPal?

One payment down, 3 more to go. Split purchases between $30-$1,500 into 4 interest-free, bi-weekly payments without the hassle of late fees.

Can you use 3 PayPal payments multiple times?

Can I have multiple PayPal Pay in 3 plans at the same time? Yes. You can track how much you owe on each plan through your PayPal account.

How much can you pay at once on PayPal?

You can send at least $4,000 in a single transaction with PayPal. With Cash App, you can send up to $1,000 per month (though you can get a higher send limit by providing your full name, date of birth and the last four digits of your Social Security number).


1 Answers

See this sample and make the changes to yours accordingly. Basically add underscore to item name before number and give unique name to amount also with underscore and number.

You have to give amount to each item based on your 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="[email protected]"> <input type="hidden" name="currency_code" value="USD">  <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 with PayPal - it's fast, free and secure!"> </form> 

Specify Quantity(optional)

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

for more reference about cart: Paypal Cart

like image 107
Codex73 Avatar answered Sep 20 '22 04:09

Codex73