# Flash paypal

**URL:** <https://forum.kirupa.com/t/flash-paypal/213858>\
**Category:** Uncategorized\
**Created:** [January 23, 2007, 7:49pm UTC](https://forum.kirupa.com/t/flash-paypal/213858 "2007-01-23T19:49:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![coop](https://avatars.discourse-cdn.com/v4/letter/c/87869e/32.png) [@coop](https://forum.kirupa.com/u/coop)\
**Post date:** [January 23, 2007, 7:49pm UTC](https://forum.kirupa.com/t/flash-paypal/213858/1 "2007-01-23T19:49:46Z")

</div>

flash paypal

Hi all,

I’m developing a shopping cart in flash to connect with paypal. The cart side is all fine. When the buy btn is pressed the contents of the basket are recorded in the multi diemensional array so I can pass the information to paypal. Each products info is stored in an array which is then within another array called paypal\_arr. This code below is what I’m using to pass the variables too paypal, but in paypal I get an error message

“Please enter amount greater than zero”

Does anyone have any experience with paypal or can offer any advise to why this is happening.

```auto

purchase = function () {
	paypal = new LoadVars();
	paypal.cmd = "_cart";
	paypal.upload = "1";
	paypal.business = "me@myaccount.co.uk";
	paypal.currency_code = "GBP";
	for (var p = 0; p<paypal_arr.length; p++) {
		var num = p+1;
		paypal["item_name_"+num] = paypal_arr[p][0];
		paypal["quantity_"+num] = "1";
		paypal["amount_"+num] = "10.00";
	}
	paypal.send("http://www.paypal.com/cgi-bin/webscr", "_blank", "post");
};

```
