Shipping fee is missing from PayPal payment

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
13 anos atrás
When customers pay wit PayPal, shipping fee is ignored in the calculation.

I just put my beta site on air, and wonder why payment don't balance with sales. No shipping...

But the tax for the shipping fee is added anyway, so the government won this time too.

Se receipt below.

Is this a known issue? Please help.



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


ToppKropp.no

Bjxxxx Pauxxxx (xxxxx@hotmail.com) has just placed an order from your store. Below is the summary of the order.

Order Number: 10
Date Ordered: Wednesday, September 08, 2010



Billing Address
Bjxxxx Paxxx
Rxxxx
Larvik 0000
Norway



Shipping Address
Bjxxxx Paxxx
Rxxx
Larvik 0000
Norway

Shipping Method: Posten: Brevpost A-post
Name  Price  Quantity  Total
NULLUS kur mot hodelus   kr 298,00 (NOK) incl tax  1  kr 298,00 (NOK) incl tax
  Sub-Total  kr 298,00 (NOK) incl tax
  Shipping  kr 35,00 (NOK) incl tax
  MVA 25%  kr 66,60 (NOK)
  Order Total  kr 333,00 (NOK)

-----------BUT THIS IS FROM PAYPAL-------------



Sep 8, 2010 01:50:40 PDT
Transaction ID: xxxxxxxxxx

Hello Bold Flag AS,

You received a payment of 305.00 NOK from Bjxxxxx Pxxx (bxxxx@hotmail.com)
Thanks for using PayPal. You can now ship any items. To see all the transaction details, log in to your PayPal account.

Important note: Bxxxx Pxxxxhas provided an unconfirmed address. Please check the Transaction Details page for this payment to find out whether you will be covered by PayPal Seller Protection.

It may take a few moments for this transaction to appear in your account.

Seller Protection - Not Eligible
________________________________________
Buyer
Bjxxxx Paxxxx
bxxxxx@hotmail.com
+47 1231231  Instructions to merchant
The buyer hasn't entered any instructions.
Shipping address - unconfirmed
Bxxxx Pxxx
Rxxxxx
Larvik
0000
Norway  Shipping details
You haven’t added any shipping details.
Description  Unit price  Qty  Amount
NULLUS kur mot hodelus
Item#   238.40 NOK  1  238.40 NOK
Sales Tax
Item#   66.60 NOK  1  66.60 NOK
Subtotal  305.00 NOK
Total  305.00 NOK
Payment  305.00 NOK
Payment sent to xxxxxx@bxxxx.no


Invoice ID: 10
Questions? Go to the Help Center at: www.paypal.com/no/help.

Lift your withdrawal and receiving limits. Log in to your PayPal account and click View limits on your Account Overview page.

Please do not reply to this email. This mailbox is not monitored and you will not receive a response. For assistance, log in to your PayPal account and click Help in the top right corner of any PayPal page.

To receive email notifications in plain text instead of HTML, log in to your PayPal account, go to your Profile, and click Notifications.

________________________________________
Copyright © 1999-2010 PayPal. All rights reserved.

Consumer advisory- PayPal Pte. Ltd., the holder of PayPal’s stored value
facility, does not require the approval of the Monetary Authority of Singapore.
Users are advised to read the terms and conditions carefully.
13 anos atrás
What version of nopCommerce are you using and which Paypal service- Standard, Express, or Direct?
13 anos atrás
Hi, Im happy to see that youre on the ball right away!

I run nopC 1.8

I run PayPal Standard, since my primary currency (Norwegian kroner) is not ssupported by Express and Direct.
13 anos atrás
I like that Paypal's help address is www.paypal.com/no/help.... no/help?

Anyway, go into PaypalStandardPaymentProcessor.cs and do this:

comment out the line for shipping like this:

//builder.AppendFormat("&shipping_1={0}", order.OrderShippingExclTax);

and add this after that line:

x++
builder.AppendFormat("&item_name_" + x + "={0}", "Shipping");
builder.AppendFormat("&amount_" + x + "={0}", order.OrderShippingExclTax);
builder.AppendFormat("&quantity_" + x + "={0}", 1);

This will attempt to send the shipping as an item. If this works then there IS a value in order.OrderShippingExclTax that is being sent to Paypal, if it doesn't then order.OrderShippingExclTax is empty and the cause it somewhere other than the Paypal file... more like orderManager.cs or something.

If you CAN pass the shipping as an item it may be that Paypal is just ignoring the shipping for some reason.... maybe because it is an unverified shipping address? I don't know.

Let me know how this turns out.
13 anos atrás
Like this?

The editor did not like the z++ without the semicolon...

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

                if (order.OrderShippingExclTax > decimal.Zero)
                {
                  //  builder.AppendFormat("&shipping_1={0}", order.OrderShippingExclTax.ToString("0.00", CultureInfo.InvariantCulture));

                    x++;
                    builder.AppendFormat("&item_name_" + x + "={0}", "Shipping");
                    builder.AppendFormat("&amount_" + x + "={0}", order.OrderShippingExclTax);
                    builder.AppendFormat("&quantity_" + x + "={0}", 1);
                    
                    
                    
                    
                    
                    cartTotal += order.OrderShippingExclTax;
                }

----------------------
13 anos atrás
I always forget the semicolon! Yes, that looks good...

If that works and it passes the shipping as an item then the issue is at Paypal's end.... or possibly with the shipping line... I wrote some of the code that went into this for 1.80, but Andrei changed some stuff when he put it in... I have no idea what that Culture stuff is... I don't think that was in 1.70.

Are you going to test it or wait for another order?
13 anos atrás
Must the PayPalStandardPaymentProcessor.cs file be compiled, or is it compiled when the app is started?

I restarted the site, and "draw my Amex" but the shipping did not manifest this time either.
13 anos atrás
Yes it must be compiled. And then replace Nop.Payment.Paypal.dll in the BIN, maybe another file or two as well.. can't remember. Check which files are updated after you compile and replace those.
13 anos atrás
OK. I edited on my live site, and I have no VS on my current PC.
I come back with the results, when I have something to report.
Thank you very much!
13 anos atrás
I did not succeed.

But I have very limited experience with C# and working with solutions in VS.

Here is what I did after my last post:

•  Installed VS2010

•  Installed a nopC 1.8 test site

•  Edited the file PaypalStandardPaymentProcessor like suggested in the post abowe

•  Build without errors

•  Replaced the original .dll in the live site, with those who changed in the test site after the build

•  Restarted the site

•  Went through the checkout process

I got no errors, and there were changes in the PayPal checkout, indicating that the modification of the file was successfully committed.

But, the result was not good. Now the shipping *and* the tax was absent in PayPal. I have now turned of PayPal as payment option.

I appreciate any suggestions.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.