Forums / PayPal Express Checkout support / Paypal Express not sending order details

Paypal Express not sending order details

Views: 1,556

Results 1 to 8 of 8
17 Oct 2012, 8:30 AM
#1
gal_op avatar

gal_op

New Zenner

Join Date:
Apr 2010
Posts:
21
Plugin Contributions:
0

Paypal Express not sending order details

Hi There,

I am running 1.3.9a and never managed to find a fix to that issue:

When a client gets to the checkout process and select to checkout with PayPal Express no item names are being sent to the Paypal website.

The client sees only the total he needs to pay
Attachment 11321

We don't use any taxes and there is no "specials" module that effects the total price.
Since day one, the Paypal express module only received the total price.

This is one of the Curl log file:

2012-10-15 09:28:49
-------------------
(live transaction) --> https://api-3t.paypal.com/nvp
Request Headers: 
Array
(
    [0] => Content-Type: text/namevalue
    [1] => X-VPS-Timeout: 45
    [2] => X-VPS-VIT-Client-Type: PHP/cURL
    [3] => X-VPS-VIT-Integration-Product: PHP::Zen Cart(tm) - PayPal/NVP
    [4] => X-VPS-VIT-Integration-Version: 1.3.9
)


Request Parameters: {SetExpressCheckout} 
Array
(
    [LOCALECODE] => AU
    [PAYMENTACTION] => Sale
    [ALLOWNOTE] => 1
    [LANDINGPAGE] => Billing
    [ADDROVERRIDE] => 1
    [SHIPTONAME] => ***
    [SHIPTOSTREET] => ****
    [SHIPTOCITY] => ****
    [SHIPTOZIP] => *****
    [SHIPTOSTATE] => VIC
    [SHIPTOCOUNTRYCODE] => AU
    [EMAIL] => ****
    [PHONENUM] => ****
    [AMT] => 429.90
    [RETURNURL] => https://www.themineralmiracle.com.au/ipn_main_handler.php?type=ec
    [CANCELURL] => https://www.themineralmiracle.com.au/index.php?main_page=checkout_shipping&ec_cancel=1
    [PAGESTYLE] => Primary
    [METHOD] => SetExpressCheckout
    [CURRENCYCODE] => AUD
    [USER] => ******
    [PWD] => ****************
    [VERSION] => 60.0
    [SIGNATURE] => ****************************************************bzfT
)


Response: 
Array
(
    [TOKEN] => EC-0GT97674VU135223C
    [TIMESTAMP] => 2012-10-15T10:25:49Z
    [CORRELATIONID] => 6277858c22278
    [ACK] => Success
    [VERSION] => 60.0
    [BUILD] => 3926908
    [CURL_ERRORS] => 
)


SetExpressCheckout, Elapsed: 1025ms -- Success

Any help will be greatly appreciated.

19 Oct 2012, 7:27 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Paypal Express not sending order details

I believe there were several improvements to that (and other) parts of EC between 1.3.9a and 1.3.9h.
Upgrading to at least 1.3.9h would help a lot.

Additionally, the problem might be related to currency configuration, such as conflicts between the store's default currency and the currency settings in your paypal module, and your default currency's exchange rate value.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

19 Oct 2012, 8:11 AM
#3
gal_op avatar

gal_op

New Zenner

Join Date:
Apr 2010
Posts:
21
Plugin Contributions:
0

Re: Paypal Express not sending order details

Hi DrByte,

My final resort will be to upgrade to 1.3.9h. We have made lots of modification 2 years back and non of changes was recorded.

As for the currency. What are the default settings that I should have in order for that to work.

My current settings are:
Localization ->currencies -> Australian Dollar (AUD), Value:1.000000

Configuration -> my store ->Switch To Default Language Currency (false).
Currency Conversion Ratio (1.05)
module -> payment->paypal express ->Transaction Currency(Selected Currency)

I can also send you my paypal log files in PM and/or admin access to have a look

Thanks,

19 Oct 2012, 4:39 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Paypal Express not sending order details

A text-file-comparison tool like winmerge can very quickly show you the files you've changed, so you can easily merge your changes into the newer version's files.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

19 Oct 2012, 11:20 PM
#5
gal_op avatar

gal_op

New Zenner

Join Date:
Apr 2010
Posts:
21
Plugin Contributions:
0

Re: Paypal Express not sending order details

I have used Winmerge many times. I am more worried about all the addones we have installed and if they will be still compatible.
I may be solving one issue by creating many more.

I also read in other threads about the same problem with 1.3.9h
http://www.zen-cart.com/showthread.php?184604-Paypal-express-not-sending-order-details-in-1-3-9h-logs-show-them-being-sent

This is the first part of the log file Paypal_Action_EC-XXXXXXXXX log. I hope that will shad some light on the issue:

Oct-15-2012 20:40:53 (1350294053)
getLineItemDetails 7 - subtotal comparisons
BEFORE line-item calcs: Array
(
    [AMT] => 512.95
    [ITEMAMT] => 0
    [TAXAMT] => 0
    [SHIPPINGAMT] => 0
    [SHIPDISCAMT] => 0
    [HANDLINGAMT] => 0
    [INSURANCEAMT] => 0
)
 - AFTER doing line-item calcs: Array
(
    [AMT] => 512.95
    [ITEMAMT] => 0
    [TAXAMT] => 0
    [SHIPPINGAMT] => 0
    [SHIPDISCAMT] => 0
    [HANDLINGAMT] => 0
    [INSURANCEAMT] => 0
)

=================================

Oct-15-2012 20:40:53 (1350294053)
getLineItemDetails 8
checking subtotals... 
Array
(
    [calculated total] => 0.00
    [AMT] => 512.95
)

-------------------
difference: 512.95  (abs+rounded: -512.95)
=================================

Oct-15-2012 20:40:53 (1350294053)
getLineItemDetails 9
Subtotals Bad. Skipping line-item/subtotal details
=================================

Oct-15-2012 20:40:53 (1350294053)
ec_step1 - 1
Checking to see if we are in markflow
cart contents: physical

NOTE: $this->showPaymentPage = 0
Customer ID: 1567
Session Data: Array
(
    [securityToken] => d3f9f60905f103dac882dcaa288431ec
    [customers_host_address] => c220-239-50-23.eburwd6.vic.optusnet.com.au
    [cartID] => 
    [cart] => shoppingCart Object
        (
            [contents] => Array
                (
                    [306] => Array
                        (
                            [qty] => 2
                        )

                    [226:e4ae1a6b42fe65398ccee9836872c5b4] => Array
                        (
                            [qty] => 1
                            [attributes] => Array
                                (
                                    [1] => 452
                                )

                        )

Thanks,

20 Oct 2012, 2:15 AM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Paypal Express not sending order details

There were numerous updates to the EC code between 1.3.9a and 1.3.9h. That was more than two years ago. And if I recall correctly several of them dealt with line-item and subtotal calculation issues such as what your logs reveal.

While I can appreciate that you've made many customizations to your site and upgrading requires a bit of care, it is an important step in dealing with addressing the problems you stated you wish to solve here.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

20 Oct 2012, 7:17 AM
#7
gal_op avatar

gal_op

New Zenner

Join Date:
Apr 2010
Posts:
21
Plugin Contributions:
0

Re: Paypal Express not sending order details

I have started the updating process. It is a painful one. I have updated from '1.3.9a' to '1.3.9b' and the problem seems to stay the same.

Once I have jumped from '1.3.9d' to '1.3.9e' the PayPal Express issue was fixed.:clap:

Thanks DrByte

20 Oct 2012, 10:48 PM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Paypal Express not sending order details

Glad you found the fix you needed.

I strongly recommend that you complete the process of getting to at least v1.3.9h

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.