Forums / PayPal Express Checkout support / Customer's PayPal account/credit card not debited

Customer's PayPal account/credit card not debited

Locked

Started by inosia on 9 Jan 2011, 12:17 AM · Views: 12,837

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
9 Jan 2011, 12:17 AM
#1
inosia avatar

inosia

New Zenner

Join Date:
Jan 2010
Posts:
16
Plugin Contributions:
0

Customer's PayPal account/credit card not debited

Hi,

I'm using Zen Cart version 1.3.8a and have installed PayPal Express Checkout. I've done several live test transactions first using my personal PayPal account, and then using a credit card without Paypal login and none of these transactions have gone through.

After confirming my order, I am successfully redirected to PayPal to enter my credit card info or to log in to my PayPal account. I am then redirected back to my site where steps 2 - Payment Information and 3 - Order Confirmation are repeated. I click confirm, and am directed to the Checkout Success page (incidentally, for whatever reason this page does not display the text I entered in my define_checkout_success file; it instead displays "Thank you! We Appreciate your business!"). So, all seems well except neither my credit card nor PayPal personal account are debited, and my PayPal business account does not receive the funds. According to my PayPal log files there are no errors.

I just did another test today using my personal PayPal account with the same result. I've pasted the contents of the corresponding Paypal log files below. My product is a virtual product. I have "Product is Virtual" and "Always Free Shipping" checked in Zen Cart Admin. I'm hoping that someone can help me figure out what's going wrong.

Thanks!

1st LOG FILE

Jan-08-2011 03:14:38
ec_step1 - 1
Checking to see if we are in markflow
cart contents: virtual

NOTE: $this->showPaymentPage = 1
Customer ID: 2
Session Data: Array
(
[securityToken] => 251959c253517b171a320b36046dcdf0
[customers_host_address] => bas4-montreal45-1242356691.dsl.bell.ca
[cartID] =>
[cart] => shoppingCart Object
(
[contents] => Array
(
[180] => Array
(
[qty] => 1
)

            )

        [total] => 10
        [weight] => 0
        [cartID] => 
        [content_type] => virtual
        [free_shipping_item] => 1
        [free_shipping_weight] => 0
        [free_shipping_price] => 10
        [observers] => Array
            (
            )

    )

[navigation] => navigationHistory Object
    (
        [path] => Array
            (
                [0] => Array
                    (
                        [page] => index
                        [mode] => SSL
                        [get] => Array
                            (
                                [type] => ec
                                [markflow] => 1
                                [clearSess] => 1
                                [stage] => final
                            )

                        [post] => Array
                            (
                            )

                    )

            )

        [snapshot] => Array
            (
            )

        [observers] => Array
            (
            )

    )

[language] => english
[languages_id] => 1
[languages_code] => en
[check_valid] => true
[currency] => USD
[today_is] => 2011-01-08
[updateExpirations] => 1
[session_counter] => 1
[customers_ip_address] => 74.12.219.211
[ssu_languages_code] => Array
    (
        [en] => 1
    )

[new_products_id_in_cart] => 180
[valid_to_checkout] => 1
[cart_errors] => 
[customer_id] => 2
[customer_default_address_id] => 2
[customers_authorization] => 0
[customer_first_name] => Andrelle
[customer_last_name] => Quammie
[customer_country_id] => 38
[customer_zone_id] => 76
[sendto] => 
[payment] => paypalwpp
[shipping] => free_free
[billto] => 2
[cot_gv] => 0
[comments] => 

)

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

Jan-08-2011 03:14:38
ec-step1-addr_check
cart contents is virtual and customer is logged in ... therefore options['NOSHIPPING']=1

Jan-08-2011 03:14:38
ec_step1 - 2 -submit
Array
(
[AMT] => 10.00
[RETURNURL] => https://www.moonstonetarot.com/~moonst5/ipn_main_handler.php?type=ec
[CANCELURL] => https://www.moonstonetarot.com/~moonst5/checkout_shipping/ec_cancel/1
[LOCALECODE] => US
[CURRENCY] => USD
[PAYMENTACTION] => Sale
[NOSHIPPING] => 1
[EMAIL] => [email protected]
[PHONENUM] => 514-636-9950
[SOLUTIONTYPE] => SOLE
)

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

2nd LOG FILE

Jan-08-2011 03:15:24
PayPal test Log - ec_step2 $_REQUEST data
In function: ec_step2()
Data in $_REQUEST =
Array
(
[type] => ec
[token] => EC-0HC1834028076842W
[PayerID] => J4TP6JLB8FA4Y
[zenid] => 48253f829ceb2f26613667b5c2a4ba1b
)

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

Jan-08-2011 03:15:24
ec_step2_finish - 1
START: paypal_ec_payer_info= Array
(
[payer_id] => J4TP6JLB8FA4Y
[payer_email] => [email protected]
[payer_salutation] =>
[payer_gender] =>
[payer_firstname] => Andrelle
[payer_lastname] => Quammie
[payer_business] =>
[payer_status] => verified
[ship_country_code] =>
[ship_address_status] =>
[ship_phone] =>
[ship_name] =>
[ship_street_1] =>
[ship_street_2] =>
[ship_city] =>
[ship_state] =>
[ship_postal_code] =>
[ship_country_name] =>
)

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

Jan-08-2011 03:15:24
ec_step2_finish - 2
country_id = 223
address_format_id = 2
state_id = 0 (original state tested: )
country1->fields['countries_id'] =
country2->fields['countries_id'] =
$order = stdClass Object
(
[customer] => Array
(
[name] => Andrelle Quammie
[company] =>
[street_address] =>
[suburb] =>
[city] =>
[postcode] =>
[state] =>
[country] => Array
(
[id] => 223
[title] =>
[iso_code_2] =>
[iso_code_3] =>
)

        [format_id] => 2
        [email_address] => [email protected]
        [telephone] => 
        [zone_id] => 0
    )

[billing] => Array
    (
        [name] => Andrelle Quammie
        [company] => 
        [street_address] => 
        [suburb] => 
        [city] => 
        [postcode] => 
        [state] => 
        [country] => Array
            (
                [id] => 223
                [title] => 
                [iso_code_2] => 
                [iso_code_3] => 
            )

        [format_id] => 2
        [zone_id] => 0
    )

[delivery] => Array
    (
        [name] => Andrelle Quammie
        [company] => 
        [street_address] => 
        [suburb] => 
        [city] => 
        [postcode] => 
        [state] => 
        [country] => Array
            (
                [id] => 223
                [title] => 
                [iso_code_2] => 
                [iso_code_3] => 
            )

        [country_id] => 223
        [format_id] => 2
        [zone_id] => 0
    )

)

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

Jan-08-2011 03:15:24
ec_step2_finish - 3
Exiting ec_step2_finish logged-in mode.
Selected address:
Original was: 2

Jan-08-2011 03:15:24
termEC-2
BEFORE: $this->showPaymentPage = 1
Token Data:EC-0HC1834028076842W

Jan-08-2011 03:15:24
termEC-3
AFTER: $this->showPaymentPage = 1

Jan-08-2011 03:15:24
termEC-4
We ARE logged in, and $this->showPaymentPage === true

Jan-08-2011 03:15:24
termEC-6
We DO have a shipping method selected, so goto PAYMENT

Jan-08-2011 03:15:24
termEC-10
Redirecting to checkout_payment - Stack: checkout_payment
Message:
Session Data: Array
(
[securityToken] => 251959c253517b171a320b36046dcdf0
[customers_host_address] => bas4-montreal45-1242356691.dsl.bell.ca
[cartID] =>
[cart] => shoppingCart Object
(
[contents] => Array
(
[180] => Array
(
[qty] => 1
)

            )

        [total] => 10
        [weight] => 0
        [cartID] => 
        [content_type] => virtual
        [free_shipping_item] => 1
        [free_shipping_weight] => 0
        [free_shipping_price] => 10
        [observers] => Array
            (
            )

    )

[navigation] => navigationHistory Object
    (
        [path] => Array
            (
                [0] => Array
                    (
                        [page] => index
                        [mode] => SSL
                        [get] => Array
                            (
                                [type] => ec
                                [token] => EC-0HC1834028076842W
                                [PayerID] => J4TP6JLB8FA4Y
                            )

                        [post] => Array
                            (
                            )

                    )

            )

        [snapshot] => Array
            (
            )

        [observers] => Array
            (
            )

    )

[language] => english
[languages_id] => 1
[languages_code] => en
[check_valid] => true
[currency] => USD
[today_is] => 2011-01-08
[updateExpirations] => 1
[session_counter] => 1
[customers_ip_address] => 74.12.219.211
[ssu_languages_code] => Array
    (
        [en] => 1
    )

[new_products_id_in_cart] => 180
[valid_to_checkout] => 1
[cart_errors] => 
[customer_id] => 2
[customer_default_address_id] => 2
[customers_authorization] => 0
[customer_first_name] => Andrelle
[customer_last_name] => Quammie
[customer_country_id] => 38
[customer_zone_id] => 76
[sendto] => 
[payment] => paypalwpp
[billto] => 2
[cot_gv] => 0
[comments] => 
[paypal_ec_token] => EC-0HC1834028076842W
[paypal_ec_payer_id] => J4TP6JLB8FA4Y
[paypal_ec_payer_info] => Array
    (
        [payer_id] => J4TP6JLB8FA4Y
        [payer_email] => [email protected]
        [payer_salutation] => 
        [payer_gender] => 
        [payer_firstname] => Andrelle
        [payer_lastname] => Quammie
        [payer_business] => 
        [payer_status] => verified
        [ship_country_code] => 
        [ship_address_status] => 
        [ship_phone] => 
        [ship_name] => 
        [ship_street_1] => 
        [ship_street_2] => 
        [ship_city] => 
        [ship_state] => 
        [ship_postal_code] => 
        [ship_country_name] => 
    )

[paypal_ec_temp] => 
[shipping] => Array
    (
        [id] => freeshipper_freeshipper
        [title] => FREE SHIPPING! (Free Shipping Only)
        [cost] => 0
        [module] => freeshipper
    )

)

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

3rd LOG FILE

2011-01-08 03:15:24

(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: 1.3.8a
)

Request Parameters: {GetExpressCheckoutDetails}
Array
(
[TOKEN] => EC-0HC1834028076842W
[REQBILLINGADDRESS] => 1
[METHOD] => GetExpressCheckoutDetails
[USER] => inosia_api1.hotmail.com
[PWD] => ****************
[VERSION] => 3.2
[SIGNATURE] => ****************************************************rFKa
)

Response:
Array
(
[TOKEN] => EC-0HC1834028076842W
[TIMESTAMP] => 2011-01-08T23:15:27Z
[CORRELATIONID] => 9e605b46f07e3
[ACK] => Success
[VERSION] => 3.2
[BUILD] => 1646991
[EMAIL] => [email protected]
[PAYERID] => J4TP6JLB8FA4Y
[PAYERSTATUS] => verified
[FIRSTNAME] => Andrelle
[LASTNAME] => Quammie
[COUNTRYCODE] => CA
[CURL_ERRORS] =>
)

GetExpressCheckoutDetails, Elapsed: 271ms -- Success

4th LOG FILE

2011-01-08 03:14:38

(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: 1.3.8a
)

Request Parameters: {SetExpressCheckout}
Array
(
[LOCALECODE] => US
[PAYMENTACTION] => Sale
[NOSHIPPING] => 1
[EMAIL] => [email protected]
[PHONENUM] => 514-636-9950
[AMT] => 10.00
[RETURNURL] => https://www.moonstonetarot.com/~moonst5/ipn_main_handler.php?type=ec
[CANCELURL] => https://www.moonstonetarot.com/~moonst5/checkout_shipping/ec_cancel/1
[PAGESTYLE] => Primary
[METHOD] => SetExpressCheckout
[CURRENCYCODE] => USD
[USER] => inosia_api1.hotmail.com
[PWD] => ****************
[VERSION] => 3.2
[SIGNATURE] => ****************************************************rFKa
)

Response:
Array
(
[TOKEN] => EC-0HC1834028076842W
[TIMESTAMP] => 2011-01-08T23:14:40Z
[CORRELATIONID] => a5d616cba0240
[ACK] => Success
[VERSION] => 3.2
[BUILD] => 1646991
[CURL_ERRORS] =>
)

SetExpressCheckout, Elapsed: 357ms -- Success

26 Jan 2011, 6:28 AM
#2
inosia avatar

inosia

New Zenner

Join Date:
Jan 2010
Posts:
16
Plugin Contributions:
0

Re: Customer's PayPal account/credit card not debited

I figured it out! I went to the PayPal manual here https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_ECSimpleIntegration and compared the API operation response strings from the manual with what I should have been seeing in my debug logs, and I discovered that the API DoExpressCheckoutPayment operation wasn't appearing in any of the logs, which meant my site was skipping that final step. Once I figured that out, I was able to search the forum for the keyword "doexpresscheckout" which led me to the solution here http://www.zen-cart.com/forum/showthread.php?t=106266. Turns out that aside from PayPal Express Checkout, I had 3 other payment modules disabled but nevertheless installed in Zen Cart Admin and they were overriding Express Checkout. Once I removed them i.e. uninstalled them, transactions worked like a charm: credit card/PayPal account was debited, and the funds were transferred and received by my business account. Hallelujah!

26 Jan 2011, 2:00 PM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Customer's PayPal account/credit card not debited

Thanks for the update that the conflict was in having other modules installed and marked as disabled and that removing the modules not being used fixed the problem ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

4 Feb 2011, 2:25 PM
#4
inosia avatar

inosia

New Zenner

Join Date:
Jan 2010
Posts:
16
Plugin Contributions:
0

Re: Customer's PayPal account/credit card not debited

My pleasure :smile:

4 Feb 2011, 8:25 PM
#5
drbyte avatar

drbyte

Sensei

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

Re: Customer's PayPal account/credit card not debited

You should also be upgrading to the latest version of Zen Cart, which contains fixes to prevent the problems you were having.

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