cancel
Showing results for 
Search instead for 
Did you mean: 

Magento PayPal Order is created but giving error “Unable to initialize Express Checkout”

Magento PayPal Order is created but giving error “Unable to initialize Express Checkout”

I am encountering a strange issue with PayPal Express checkout. I have configured PayPal express checkout on website. Every thing is configured correctly as per my knowledge.

The problem I am facing is, When user pays using Express checkout he/she is successfully redirected to PayPal website and are allowed to pay.

After payment, when user is redirected back to Magento i am getting an error "Unable to initialize Express Checkout". However, the payment is already done and reflected in PayPal. Also, the order is being placed in Magento admin.

For better clarity, I have inserted below PayPal log

 

2016-01-08T08:16:27+00:00 DEBUG (7): Array
(
    [url] => https://api-3t.sandbox.paypal.com/nvp
    [SetExpressCheckout] => Array
        (
            [PAYMENTACTION] => Sale
            [AMT] => 13.00
            [CURRENCYCODE] => GBP
            [RETURNURL] => http://example.com/paypal/express/return/
            [CANCELURL] => http://example.com/paypal/express/cancel/
            [INVNUM] => WD400338
            [SOLUTIONTYPE] => Sole
            [GIROPAYCANCELURL] => http://example.com/paypal/express/cancel/
            [GIROPAYSUCCESSURL] => http://example.com/checkout/onepage/success/
            [BANKTXNPENDINGURL] => http://example.com/checkout/onepage/success/
            [LOCALECODE] => en_US
            [ITEMAMT] => 11.00
            [TAXAMT] => 0.00
            [SHIPPINGAMT] => 2.00
            [L_NUMBER0] => BC19560
            [L_NAME0] => Histazyme (Seasonal Support)
            [L_QTY0] => 1
            [L_AMT0] => 11.00
            [BUSINESS] => 
            [NOTETEXT] => 
            [EMAIL] => debra@yahoo.com
            [FIRSTNAME] => Debra
            [LASTNAME] => Morgan
            [MIDDLENAME] => 
            [SALUTATION] => 
            [SUFFIX] => 
            [COUNTRYCODE] => GB
            [STATE] => 
            [CITY] => london
            [STREET] => Deb 123
            [ZIP] => WLQ123
            [PHONENUM] => 123123123
            [SHIPTOCOUNTRYCODE] => GB
            [SHIPTOSTATE] => 
            [SHIPTOCITY] => london
            [SHIPTOSTREET] => Deb 123
            [SHIPTOZIP] => WLQ123
            [SHIPTOPHONENUM] => 123123123
            [SHIPTOSTREET2] => 
            [STREET2] => 
            [SHIPTONAME] => Debra Morgan
            [ADDROVERRIDE] => 1
            [METHOD] => SetExpressCheckout
            [VERSION] => 72.0
            [USER] => ****
            [PWD] => ****
            [SIGNATURE] => ****
            [BUTTONSOURCE] => Magento_Cart_Enterprise
        )

    [response] => Array
        (
            [TOKEN] => EC-2B4844665V475563G
            [TIMESTAMP] => 2016-01-08T08:16:27Z
            [CORRELATIONID] => 88a03ff1aa3e2
            [ACK] => Success
            [VERSION] => 72.0
            [BUILD] => 18308778
        )

    [__pid] => 83882
)

2016-01-08T08:16:47+00:00 DEBUG (7): Array
(
    [url] => https://api-3t.sandbox.paypal.com/nvp
    [GetExpressCheckoutDetails] => Array
        (
            [TOKEN] => EC-2B4844665V475563G
            [METHOD] => GetExpressCheckoutDetails
            [VERSION] => 72.0
            [USER] => ****
            [PWD] => ****
            [SIGNATURE] => ****
            [BUTTONSOURCE] => Magento_Cart_Enterprise
        )

    [response] => Array
        (
            [TOKEN] => EC-2B4844665V475563G
            [BILLINGAGREEMENTACCEPTEDSTATUS] => 0
            [CHECKOUTSTATUS] => PaymentActionNotInitiated
            [TIMESTAMP] => 2016-01-08T08:16:47Z
            [CORRELATIONID] => f9828cb460e25
            [ACK] => Success
            [VERSION] => 72.0
            [BUILD] => 18308778
            [EMAIL] => magentotester@gmail.com
            [PAYERID] => ET7PQY4WCM76N
            [PAYERSTATUS] => verified
            [FIRSTNAME] => Magento
            [LASTNAME] => Tester
            [COUNTRYCODE] => GB
            [SHIPTONAME] => Debra Morgan
            [SHIPTOSTREET] => Deb 123
            [SHIPTOCITY] => london
            [SHIPTOZIP] => WLQ123
            [SHIPTOCOUNTRYCODE] => GB
            [SHIPTOPHONENUM] => 123123123
            [SHIPTOCOUNTRYNAME] => United Kingdom
            [ADDRESSSTATUS] => Confirmed
            [CURRENCYCODE] => GBP
            [AMT] => 13.00
            [ITEMAMT] => 11.00
            [SHIPPINGAMT] => 2.00
            [HANDLINGAMT] => 0.00
            [TAXAMT] => 0.00
            [INVNUM] => WD400338
            [INSURANCEAMT] => 0.00
            [SHIPDISCAMT] => 0.00
            [L_NAME0] => Histazyme (Seasonal Support)
            [L_NUMBER0] => BC19560
            [L_QTY0] => 1
            [L_TAXAMT0] => 0.00
            [L_AMT0] => 11.00
            [L_ITEMWEIGHTVALUE0] =>    0.00000
            [L_ITEMLENGTHVALUE0] =>    0.00000
            [L_ITEMWIDTHVALUE0] =>    0.00000
            [L_ITEMHEIGHTVALUE0] =>    0.00000
            [PAYMENTREQUEST_0_CURRENCYCODE] => GBP
            [PAYMENTREQUEST_0_AMT] => 13.00
            [PAYMENTREQUEST_0_ITEMAMT] => 11.00
            [PAYMENTREQUEST_0_SHIPPINGAMT] => 2.00
            [PAYMENTREQUEST_0_HANDLINGAMT] => 0.00
            [PAYMENTREQUEST_0_TAXAMT] => 0.00
            [PAYMENTREQUEST_0_INVNUM] => WD400338
            [PAYMENTREQUEST_0_INSURANCEAMT] => 0.00
            [PAYMENTREQUEST_0_SHIPDISCAMT] => 0.00
            [PAYMENTREQUEST_0_INSURANCEOPTIONOFFERED] => false
            [PAYMENTREQUEST_0_SHIPTONAME] => Debra Morgan
            [PAYMENTREQUEST_0_SHIPTOSTREET] => Deb 123
            [PAYMENTREQUEST_0_SHIPTOCITY] => london
            [PAYMENTREQUEST_0_SHIPTOZIP] => WLQ123
            [PAYMENTREQUEST_0_SHIPTOCOUNTRYCODE] => GB
            [PAYMENTREQUEST_0_SHIPTOPHONENUM] => 123123123
            [PAYMENTREQUEST_0_SHIPTOCOUNTRYNAME] => United Kingdom
            [PAYMENTREQUEST_0_ADDRESSSTATUS] => Confirmed
            [L_PAYMENTREQUEST_0_NAME0] => Histazyme (Seasonal Support)
            [L_PAYMENTREQUEST_0_NUMBER0] => BC19560
            [L_PAYMENTREQUEST_0_QTY0] => 1
            [L_PAYMENTREQUEST_0_TAXAMT0] => 0.00
            [L_PAYMENTREQUEST_0_AMT0] => 11.00
            [L_PAYMENTREQUEST_0_ITEMWEIGHTVALUE0] =>    0.00000
            [L_PAYMENTREQUEST_0_ITEMLENGTHVALUE0] =>    0.00000
            [L_PAYMENTREQUEST_0_ITEMWIDTHVALUE0] =>    0.00000
            [L_PAYMENTREQUEST_0_ITEMHEIGHTVALUE0] =>    0.00000
            [PAYMENTREQUESTINFO_0_ERRORCODE] => 0
        )

    [__pid] => 4730
)

2016-01-08T08:16:50+00:00 DEBUG (7): Array
(
    [url] => https://api-3t.sandbox.paypal.com/nvp
    [DoExpressCheckoutPayment] => Array
        (
            [TOKEN] => EC-2B4844665V475563G
            [PAYERID] => ET7PQY4WCM76N
            [PAYMENTACTION] => Sale
            [AMT] => 13.00
            [CURRENCYCODE] => GBP
            [BUTTONSOURCE] => Magento_Cart_Enterprise
            [NOTIFYURL] => http://example.com/paypal/ipn/
            [RETURNFMFDETAILS] => 1
            [ITEMAMT] => 11.00
            [TAXAMT] => 0.00
            [SHIPPINGAMT] => 2.00
            [L_NUMBER0] => BC19560
            [L_NAME0] => Histazyme (Seasonal Support)
            [L_QTY0] => 1
            [L_AMT0] => 11.00
            [METHOD] => DoExpressCheckoutPayment
            [VERSION] => 72.0
            [USER] => ****
            [PWD] => ****
            [SIGNATURE] => ****
        )

    [response] => Array
        (
            [TOKEN] => EC-2B4844665V475563G
            [SUCCESSPAGEREDIRECTREQUESTED] => false
            [TIMESTAMP] => 2016-01-08T08:16:50Z
            [CORRELATIONID] => ca2bf8e5aa456
            [ACK] => Success
            [VERSION] => 72.0
            [BUILD] => 18308778
            [TRANSACTIONID] => 7S516206DM871681U
            [TRANSACTIONTYPE] => cart
            [PAYMENTTYPE] => instant
            [ORDERTIME] => 2016-01-08T08:16:50Z
            [AMT] => 13.00
            [FEEAMT] => 0.64
            [TAXAMT] => 0.00
            [CURRENCYCODE] => GBP
            [PAYMENTSTATUS] => Completed
            [PENDINGREASON] => None
            [REASONCODE] => None
            [PROTECTIONELIGIBILITY] => Eligible
            [INSURANCEOPTIONSELECTED] => false
            [SHIPPINGOPTIONISDEFAULT] => false
            [PAYMENTINFO_0_TRANSACTIONID] => 7S516206DM871681U
            [PAYMENTINFO_0_TRANSACTIONTYPE] => cart
            [PAYMENTINFO_0_PAYMENTTYPE] => instant
            [PAYMENTINFO_0_ORDERTIME] => 2016-01-08T08:16:50Z
            [PAYMENTINFO_0_AMT] => 13.00
            [PAYMENTINFO_0_FEEAMT] => 0.64
            [PAYMENTINFO_0_TAXAMT] => 0.00
            [PAYMENTINFO_0_CURRENCYCODE] => GBP
            [PAYMENTINFO_0_PAYMENTSTATUS] => Completed
            [PAYMENTINFO_0_PENDINGREASON] => None
            [PAYMENTINFO_0_REASONCODE] => None
            [PAYMENTINFO_0_PROTECTIONELIGIBILITY] => Eligible
            [PAYMENTINFO_0_PROTECTIONELIGIBILITYTYPE] => ItemNotReceivedEligible,UnauthorizedPaymentEligible
            [PAYMENTINFO_0_SECUREMERCHANTACCOUNTID] => PHSYBBA6RW3LS
            [PAYMENTINFO_0_ERRORCODE] => 0
            [PAYMENTINFO_0_ACK] => Success
        )

    [__pid] => 4730
)

2016-01-08T08:16:53+00:00 DEBUG (7): Array
(
    [ipn] => Array
        (
            [address_city] => london
            [address_country] => United Kingdom
            [address_country_code] => GB
            [address_name] => Debra Morgan
            [address_state] => 
            [address_status] => confirmed
            [address_street] => Deb 123
            [address_zip] => WLQ123
            [charset] => windows-1252
            [custom] => 
            [first_name] => Magento
            [invoice] => WD400338
            [ipn_track_id] => ca2bf8e5aa456
            [item_name1] => Histazyme (Seasonal Support)
            [item_number1] => BC19560
            [last_name] => Tester
            [mc_currency] => GBP
            [mc_fee] => 0.64
            [mc_gross] => 13.00
            [mc_gross_1] => 11.00
            [mc_handling] => 0.00
            [mc_handling1] => 0.00
            [mc_shipping] => 2.00
            [mc_shipping1] => 0.00
            [notify_version] => 3.8
            [num_cart_items] => 1
            [payer_email] => magentotester@gmail.com
            [payer_id] => ET7PQY4WCM76N
            [payer_status] => verified
            [payment_date] => 00:16:50 Jan 08, 2016 PST
            [payment_fee] => 
            [payment_gross] => 
            [payment_status] => Completed
            [payment_type] => instant
            [protection_eligibility] => Eligible
            [quantity1] => 1
            [receiver_email] => magentok.testing@gmail.com
            [receiver_id] => PHSYBBA6RW3LS
            [residence_country] => GB
            [tax] => 0.00
            [tax1] => 0.00
            [test_ipn] => 1
            [transaction_subject] => 
            [txn_id] => 7S516206DM871681U
            [txn_type] => cart
            [verify_sign] => A.CSYz4u5IILQm5wM0J0JbJiIcEuA.7y2YZiar13z4m9ajJ1-KMo9qb-
        )

    [postback_to] => https://www.sandbox.paypal.com/cgi-bin/webscr
    [__pid] => 78225
)