Paypal Checkout Error: "Payment For: undefined"

Get help with nopcart's interaction with payment provider gateways like Authorize.net, Worldpay, etc.

Moderators: Koibito, Stefko, Randy

Paypal Checkout Error: "Payment For: undefined"

Postby apricots » Wed Oct 29, 2003 9:04 am

I got this Paypal Checkout Error:

"Payment For: undefined"

I used checkout.pl, clicked "buy now" button, "thank you" page on my site was correct.

However, on PayPal site, I saw the above error.

Besides that error, other information passed on PayPal correctly.

So I wonder what went wrong?

I thoutht somthing was wrong in the following code:

//Payment Processor Options:
PaymentProcessor = '';

----------------------------------
var strPP = "Company Name "; //Payment Processor Description Field

-------------------------------------

if ( PaymentProcessor == '' ) {
//Process description field for payment processors instead of hidden values.
//Format Description of product as:
// ID, Name, Qty X
strPP += fields[3];
if ( fields[5] != "" )
strPP += " - " + fields[5];
strPP += " Qty. " + fields[1] + ",\n";

----------------------------------------------

strOutput += "<input type=hidden name=\"" + OutputItemId + strFooter + "\" value=\"" + fields[0] + "\">";
strOutput += "<input type=hidden name=\"" + OutputItemQuantity + strFooter + "\" value=\"" + fields[1] + "\">";
strOutput += "<input type=hidden name=\"" + OutputItemPrice + strFooter + "\" value=\"" + fields[2] + "\">";
strOutput += "<input type=hidden name=\"" + OutputItemName + strFooter + "\" value=\"" + fields[3] + "\">";
strOutput += "<input type=hidden name=\"" + OutputItemShipping + strFooter + "\" value=\"" + fields[4] + "\">";
strOutput += "<input type=hidden name=\"" + OutputItemAddtlInfo + strFooter + "\" value=\"" + fields[5] + "\">";
}

}
-----------------------------------------
//Process this for PayPal
strOutput += "<input type=hidden name=\"amount\" value=\""+ moneyFormat((fTotal + fShipping + fTax)) + "\">";
strOutput += "<input type=hidden name=\"item_name\" value=\""+ strPP + "\">";

---------------------------------------

strPP must be wrong...






What I want is:
"Payment For: company.com Item A Qty, Price, Item B Qty, Price, etc."

Can that be done?

Plus, can I create Order # automatically?



Please help me. Thanks.
Ryan
apricots
 
Posts: 2
Joined: Sat Oct 25, 2003 1:38 pm

Return to Help: Payment Gateways

Who is online

Users browsing this forum: No registered users and 0 guests

cron