Page 1 of 1

paypal wrong order# showing

Posted: Thu Apr 16, 2009 6:34 pm
by compunerdy
On paypals site it is showing the order ID as the order number instead of the order number. Where can this be fixed at?

Re: paypal wrong order# showing

Posted: Fri Apr 17, 2009 6:21 am
by mazhar
This issue is logged with BUG#7819
http://bugs.ablecommerce.com/show_bug.cgi?id=7819

Re: paypal wrong order# showing

Posted: Sun May 03, 2009 11:34 am
by Brewhaus
Has there been an updated file made available yet? I am a bit hesitant to mess with such an important file.

Re: paypal wrong order# showing

Posted: Mon May 04, 2009 2:57 am
by mazhar
Not yet, changes were made in back end. Hopefully this fix will be available in next release.

Re: paypal wrong order# showing

Posted: Mon May 04, 2009 6:52 am
by Brewhaus
Would making the changes listed below (from the bug report) resolve the issue? Is this all that there is to fixing the problem?
It looks like the PayNow Button is wrong, line 85 of the PayNowButton.cs code:

sb.Append("<input type=\"hidden\" name=\"item_name\" value=\"Order
No: " + button.Order.OrderId.ToString() + "\">");

Line 589 of PayPalProvider.cs:

oPaymentDetails.OrderDescription = "Order No: " +
order.OrderId.ToString();

Line 1333 of PayPalProvider.cs:

paymentDetails.OrderDescription = "Order #" + orderId.ToString();


I think all three of these locations should be updated to use order number.
For sake of consistency, change "Order No:" to "Order #" for the first two
locations as well.

I did a search in the provider solution for OrderId. It appears PayPal is the
only payment provider using OrderId incorrectly.