LaRue
10-16-2003, 01:03 PM
I have to deal with worldpay for credit card processing on a musician site. I'm sending the parameters from a swf using LoadVars and everything works fine, ONLY ON MSIE WINDOWS it doesn't work!?!! and their debug page is telling me the data wasn't sent in the correct mime type although flash sends stuff in application/x-www-form-urlencoded -- ANY IDEA what is wrong here?
on (release) {
amount = "15";
myParam = new LoadVars();
myParam.amount = amount*quantity;
myParam.instId = "565623";
myParam.cartId ="cartID " + (100000+random(899999));
myParam.currency = "GBP";
myParam.desc = quan + " x Cinamatic Soul T-Shirt - Size " +size;
myParam.testMode = "100";
trace(myParam+ " contentType "+myParam.contentType);
if(size != "none" && quantity != "0" && quantity != "" && amount != "NaN"){
myParam.send("https://secure.worldpay.com/payments/debug", "_blank", "POST");
} else{
amount = "15";
nogo.gotoAndPlay(2);
}
}
Server response:
"ERROR:From data was sent using 'POST', but the contents were not correclty typed (should be type application/x-www-form-urlencoded) "
I have also tried the oldschool way of sending data with getURL -- same problem! -- works fine for sending stuff to paypal...
online version here: http://www.barryadamson.com/test.html
many thanks
LR
on (release) {
amount = "15";
myParam = new LoadVars();
myParam.amount = amount*quantity;
myParam.instId = "565623";
myParam.cartId ="cartID " + (100000+random(899999));
myParam.currency = "GBP";
myParam.desc = quan + " x Cinamatic Soul T-Shirt - Size " +size;
myParam.testMode = "100";
trace(myParam+ " contentType "+myParam.contentType);
if(size != "none" && quantity != "0" && quantity != "" && amount != "NaN"){
myParam.send("https://secure.worldpay.com/payments/debug", "_blank", "POST");
} else{
amount = "15";
nogo.gotoAndPlay(2);
}
}
Server response:
"ERROR:From data was sent using 'POST', but the contents were not correclty typed (should be type application/x-www-form-urlencoded) "
I have also tried the oldschool way of sending data with getURL -- same problem! -- works fine for sending stuff to paypal...
online version here: http://www.barryadamson.com/test.html
many thanks
LR