# Sending Multiple Items in Paypal

**URL:** https://forum.kirupa.com/t/sending-multiple-items-in-paypal/271124
**Category:** flash
**Created:** [September 18, 2008, 4:44pm UTC](https://forum.kirupa.com/t/sending-multiple-items-in-paypal/271124 "2008-09-18T16:44:39Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![energy](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@energy](https://forum.kirupa.com/u/energy)
#### Post date: [September 18, 2008, 4:44pm UTC](https://forum.kirupa.com/t/sending-multiple-items-in-paypal/271124/1 "2008-09-18T16:44:39Z")

</div>

I have tried to figure out a solution but i could just set it up for one item till now. Here is a code which works for one item:

```auto
var a:Number = 0;
//var paypal_lv = new LoadVars();
addcart.addEventListener(MouseEvent.CLICK, googo);
var i:Number = 0;

function googo(e:Event):void{
			
            var url:String = "https://www.paypal.com/cgi-bin/webscr";
            var request:URLRequest = new URLRequest(url);
	var paypal_lv:URLVariables = new URLVariables();

			
            

paypal_lv.add = "22" + i;
paypal_lv.cmd = "_cart";
paypal_lv.business = "a@test.com";
paypal_lv.item_name = "mamma" + i;
paypal_lv.amount = "200";
paypal_lv.no_shipping = "2";
paypal_lv.no_note = "1";
paypal_lv.currency_code = "USD";
paypal_lv.bn = "PP-ShopCartBF";

request.data = paypal_lv;

request.method = URLRequestMethod.POST;

navigateToURL(request, "_blank");

}

```

If i add a timer like - on first second send first item and after 12 seconds execute the same code again with variable “i” incremented then it does show me 2nd item also like mamma12. But this is not a right way to go.

So is there any way to set it up?

Thanks!
