Forums / Addon Payment Modules / Paypal error 10002 misconfigured mixed live and sandbox

Paypal error 10002 misconfigured mixed live and sandbox

Locked

Started by azwli on 26 Mar 2007, 6:46 PM · Views: 19,621

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
26 Mar 2007, 6:46 PM
#1
azwli avatar

azwli

New Zenner

Join Date:
Feb 2007
Posts:
81
Plugin Contributions:
0

Paypal error 10002 misconfigured mixed live and sandbox

Hello, We are very close to haviing out zencart site up and running, www.expressservicesonline.com/cart, but have run into a paypal snag, We are not using sandbox and have never set it up, but when I try to make a $.01 pruchase I get this error:

We are sorry for the inconvenience. The PayPal account in this store is presently misconfigured to use mixed sandbox and live settings. We are unable to complete your transaction. Please notify the store owner so they can correct this problem. (10002) 10002 Security error - Security header is not validI just installed the most recient paypal patch and it did change the error a bit, it didn't use to say: 10002 Security error - Security header is not valid. And the error now comes up on step 2 where it use to come up on step 1.

Here is the error log from the last transaction:

Mar-26-2007 11:07:32
ec_step1 - 1
Checking to see if we are in markflow
cart contents: physical

NOTE: $this->showPaymentPage = 1
Customer ID: 2
Session Data: Array
(
    [customers_host_address] => 75-165-0-145.tukw.qwest.net
    [cartID] => 
    [cart] => shoppingCart Object
        (
            [contents] => Array
                (
                    [22:72f86067b1abe9f2889b89bbcb0aca85] => Array
                        (
                            [qty] => 1
                        )

                )

            [total] => 0.01
            [weight] => 0
            [cartID] => 
            [content_type] => physical
            [free_shipping_item] => 0
            [free_shipping_weight] => 0
            [free_shipping_price] => 0
            [observers] => Array
                (
                )

        )

    [navigation] => navigationHistory Object
        (
            [path] => Array
                (
                    [0] => Array
                        (
                            [page] => index
                            [mode] => NONSSL
                            [get] => Array
                                (
                                    [type] => ec
                                )

                            [post] => Array
                                (
                                )

                        )

                )

            [snapshot] => Array
                (
                )

            [observers] => Array
                (
                )

        )

    [check_valid] => true
    [language] => english
    [languages_id] => 1
    [languages_code] => en
    [currency] => USD
    [updateExpirations] => 1
    [session_counter] => 1
    [customers_ip_address] => 75.165.0.145
    [customer_id] => 2
    [customer_default_address_id] => 2
    [customers_authorization] => 0
    [customer_first_name] => Jason
    [customer_country_id] => 223
    [customer_zone_id] => 62
    [valid_to_checkout] => 1
    [cart_errors] => 
    [payment] => paypalwpp
)

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

Mar-26-2007 11:07:32
getOverrideAddress - 4
not logged in and not in markflow mode - nothing to override
=================================

Mar-26-2007 11:07:32
ec_step1 - 2 -submit
Array
(
    [RETURNURL] => http://www.expressservicesonline.com/cart/ipn_main_handler.php?type=ec
    [CANCELURL] => http://www.expressservicesonline.com/cart/index.php?main_page=checkout_shipping&ec_cancel=1
    [LOCALECODE] => US
    [CURRENCY] => USD
    [PAYMENTACTION] => Sale
    [email] => earrame gmail com
    [PHONENUM] => 360-200-0000
    [SOLUTIONTYPE] => SOLE
)

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

Mar-26-2007 11:07:33
termEC-1
Killed the session vars as requested
=================================

Mar-26-2007 11:07:33
termEC-2
BEFORE: $this->showPaymentPage = 1
Token Data:
=================================

Mar-26-2007 11:07:33
termEC-3
AFTER: $this->showPaymentPage = 1
=================================

Mar-26-2007 11:07:33
termEC-4
We ARE logged in, and $this->showPaymentPage === true
=================================

Mar-26-2007 11:07:33
termEC-5
Have no shipping method selected, or shipping < 0 so set FILENAME_CHECKOUT_SHIPPING
=================================

Mar-26-2007 11:07:34
termEC-10
Redirecting to checkout_shipping - Stack: checkout_shipping
Message: We are sorry for the inconvenience. The PayPal account in this store is presently misconfigured to use mixed sandbox and live settings. We are unable to complete your transaction. Please notify the store owner so they can correct this problem. (10002) 10002  Security error - Security header is not valid 
Session Data: Array
(
    [customers_host_address] => 75-165-0-145.tukw.qwest.net
    [cartID] => 
    [cart] => shoppingCart Object
        (
            [contents] => Array
                (
                    [22:72f86067b1abe9f2889b89bbcb0aca85] => Array
                        (
                            [qty] => 1
                        )

                )

            [total] => 0.01
            [weight] => 0
            [cartID] => 
            [content_type] => physical
            [free_shipping_item] => 0
            [free_shipping_weight] => 0
            [free_shipping_price] => 0
            [observers] => Array
                (
                )

        )

    [navigation] => navigationHistory Object
        (
            [path] => Array
                (
                    [0] => Array
                        (
                            [page] => index
                            [mode] => NONSSL
                            [get] => Array
                                (
                                    [type] => ec
                                )

                            [post] => Array
                                (
                                )

                        )

                )

            [snapshot] => Array
                (
                )

            [observers] => Array
                (
                )

        )

    [check_valid] => true
    [language] => english
    [languages_id] => 1
    [languages_code] => en
    [currency] => USD
    [updateExpirations] => 1
    [session_counter] => 1
    [customers_ip_address] => 75.165.0.145
    [customer_id] => 2
    [customer_default_address_id] => 2
    [customers_authorization] => 0
    [customer_first_name] => Jason
    [customer_country_id] => 223
    [customer_zone_id] => 62
    [valid_to_checkout] => 1
    [cart_errors] => 
    [payment] => paypalwpp
    [messageToStack] => Array
        (
            [0] => Array
                (
                    [class] => checkout_shipping
                    [text] => We are sorry for the inconvenience. The PayPal account in this store is presently misconfigured to use mixed sandbox and live settings. We are unable to complete your transaction. Please notify the store owner so they can correct this problem. (10002) 10002  Security error - Security header is not valid 
                    [type] => error
                )

        )

)

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

Any help would be greatly appriciated.

Jason

26 Mar 2007, 9:12 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: Paypal error 10002 misconfigured mixed live and sandbox

The PayPal module generates several log files for each transaction.
Can you look through them for the one that says "SetExpressCheckout" in it, and contains that same error? And post the contents ?

.
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.

26 Mar 2007, 9:13 PM
#3
drbyte avatar

drbyte

Sensei

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

Re: Paypal error 10002 misconfigured mixed live and sandbox

If you're still using v1.3.7, you might want to also be sure you've applied the most recent PayPal patch for v1.3.7 from here:
http://www.zen-cart.com/forum/showthread.php?t=56216

.
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.

26 Mar 2007, 9:35 PM
#4
azwli avatar

azwli

New Zenner

Join Date:
Feb 2007
Posts:
81
Plugin Contributions:
0

Re: Paypal error 10002 misconfigured mixed live and sandbox

Hello, thankyou for the quick resopnse, I did use the most recent patch (the one from the bottom of that thread). Here is the error log you requested:

2007-03-26 11:32:21
-------------------
(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 - WPP-NVP
    [4] => X-VPS-VIT-Integration-Version: 0.1
)


Request Parameters: {SetExpressCheckout} 
Array
(
    [LOCALECODE] => US
    [PAYMENTACTION] => Sale
    [email] => earrame gmail com
    [PHONENUM] => 360-200-0000
    [AMT] => 0.01
    [RETURNURL] => http://www.expressservicesonline.com/cart/ipn_main_handler.php?type=ec
    [CANCELURL] => http://www.expressservicesonline.com/cart/index.php?main_page=checkout_shipping&ec_cancel=1
    [PAGESTYLE] => Primary
    [METHOD] => SetExpressCheckout
    [CURRENCYCODE] => USD
    [USER] => expres********.com
    [PWD] => ***********************
    [VERSION] => 2.3
    [SIGNATURE] => *****************************************************7jor
)


Response: 
Array
(
    [TIMESTAMP] => 2007-03-26T18:32:21Z
    [CORRELATIONID] => e34bd1f72d4c7
    [ACK] => Failure
    [L_ERRORCODE0] => 10002
    [L_SHORTMESSAGE0] => Security error
    [L_LONGMESSAGE0] => Security header is not valid
    [L_SEVERITYCODE0] => Error
    [VERSION] => 2.300000
    [BUILD] => 1.0006
    [CURL_ERRORS] => 
)


SetExpressCheckout, Elapsed: 2144ms -- Failure

TIMESTAMP=2007%2d03%2d26T18%3a32%3a21Z&CORRELATIONID=e34bd1f72d4c7&ACK=Failure&L_ERRORCODE0=10002&L_SHORTMESSAGE0=Security%20error&L_LONGMESSAGE0=Security%20header%20is%20not%20valid&L_SEVERITYCODE0=Error&VERSION=2%2e300000&BUILD=1%2e0006&CURL_ERRORS=
27 Mar 2007, 6:02 AM
#5
drbyte avatar

drbyte

Sensei

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

Re: Paypal error 10002 misconfigured mixed live and sandbox

"Security Header is Not Valid" indicates that the User/Password/Signature data that you entered is not a valid combination.

Check to be sure that you've accurately transferred the information from your PayPal account settings into your Zen Cart module settings?
http://www.zen-cart.com/getpaypal

.
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.

28 Mar 2007, 6:53 PM
#6
azwli avatar

azwli

New Zenner

Join Date:
Feb 2007
Posts:
81
Plugin Contributions:
0

Re: Paypal error 10002 misconfigured mixed live and sandbox

Hello again, we checked to see if all of our passwords and settings were the same between paypal and zencart and they were. I am wondering if we should start over completely and reinstall the payment module? It is frustrating to get this far so smoothly with zencart only to run into a roadblock. Is there any other suggestions?

Jason

28 Mar 2007, 7:07 PM
#7
drbyte avatar

drbyte

Sensei

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

Re: Paypal error 10002 misconfigured mixed live and sandbox

[email] => earrame gmail comIs that the real data being submitted to PayPal, or is that just an edit you made for privacy while posting 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.

28 Mar 2007, 10:25 PM
#8
azwli avatar

azwli

New Zenner

Join Date:
Feb 2007
Posts:
81
Plugin Contributions:
0

Re: Paypal error 10002 misconfigured mixed live and sandbox

just my edit. you know, to avoid spam.

28 Mar 2007, 10:37 PM
#9
drbyte avatar

drbyte

Sensei

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

Re: Paypal error 10002 misconfigured mixed live and sandbox

What are all the settings in your PayPal Express Checkout module ?

.
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.

29 Mar 2007, 3:12 AM
#10
azwli avatar

azwli

New Zenner

Join Date:
Feb 2007
Posts:
81
Plugin Contributions:
0

Re: Paypal error 10002 misconfigured mixed live and sandbox

Here is what it says:

CURL is used for bidirectional communication with the gateway, so must be active on your hosting server (if you need to use a CURL proxy, set the CURL proxy settings under Admin->Configuration->My Store.)

Enable this Payment Module
True

Sort order of display.
0

Payment Zone
--none--

Set Order Status
Processing [2]

Set Unpaid Order Status
Pending [1]

Set Refund Order Status
Pending [1]

Express Checkout: Require Confirmed Address
No

Express Checkout: Select Cheapest Shipping Automatically
No

Express Checkout: Skip Payment Page
No

Express Checkout: Automatic Account Creation
Yes

Payment Action
Final Sale

Transaction Currency
Only USD

PayPal Page Style
Primary

API Signature -- Username
expreSNIP.com

API Signature -- Password


API Signature -- Signature Code
Ae8VshXfpb6ymfLBgm**snip!!**iFrzx0Hwk.8V-mqV9nuC7jor

Live or Sandbox
live

Debug Mode
Log File

29 Mar 2007, 4:43 AM
#11
drbyte avatar

drbyte

Sensei

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

Re: Paypal error 10002 misconfigured mixed live and sandbox

I recommend you go to your PayPal account and "remove" the current API credentials, and regenerate new API signature credentials.
Then copy/paste those back to your Zen Cart admin.

Watch out for extra spaces at the end of the copy/paste. You might paste to a text editor first, and then be sure you're only copying the real pwd.

Also watch out for your browser trying to remember the password etc. It's possible it might save it incorrectly. Sometimes re-pasting it via a different browser not configured to remember passwords might help.

.
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.

31 Mar 2007, 4:57 PM
#12
azwli avatar

azwli

New Zenner

Join Date:
Feb 2007
Posts:
81
Plugin Contributions:
0

Re: Paypal error 10002 misconfigured mixed live and sandbox

Thank you, that seems to be the fix!:D

Jason

30 Apr 2007, 3:15 PM
#13
tonysebay avatar

tonysebay

New Zenner

Join Date:
Sep 2006
Location:
Brooklyn, New York
Posts:
35
Plugin Contributions:
0

Re: Paypal error 10002 misconfigured mixed live and sandbox

azwli:

Thank you, that seems to be the fix!:D

Jason

Ya Hoo That was the fix for me Too!

27 Nov 2009, 3:55 AM
#14
bizcatalyst avatar

bizcatalyst

New Zenner

Join Date:
Oct 2009
Posts:
13
Plugin Contributions:
0

Re: Paypal error 10002 misconfigured mixed live and sandbox

That was the fix for me too (removing and re-requesting paypal API info), even for a non-Zen Cart site! Thank you DrByte! :clap: