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.
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");
};