cancel
Showing results for 
Search instead for 
Did you mean: 

Paypal Express Checkout return empty page (function setToken)

Paypal Express Checkout return empty page (function setToken)

Hi
I have a problem with the Paypal express checkout method. After I press the button "Pay now", into paypal site, I come back to magento with the url "paypal/express/return/" but the page is empty. I don't have any exception message.

I have added some log messages to understand and I have noted that the problem is into the method returnFromPaypal, in the Abstract.php file, when the function setToken is call. Can anyone help me?

The version of Magento is 1.7.0.2

Thnak you very much

 

Alessio

5 REPLIES 5

Re: Paypal Express Checkout return empty page (function setToken)

Hi @AlessioM76,



Could you please share the line of the Abstract.php file where you detected the problem?
If you can share that part of the code as well, that would be helpful to see what's going on.



Best regards.

Gabriel

Welcome to the Magento Forums. Remember to introduce yourself and read the Magento Forums Guidelines.

Re: Paypal Express Checkout return empty page (function setToken)

Hi Gabriel,

in the file app/code/core/Mage/Paypal/Controller/Express/Abstract.php there is the method returnAction:

public function returnAction()
    {
        try {
Mage::log('Return from Paypal');
            $this->_initCheckout();
            $this->_checkout->returnFromPaypal($this->_initToken());
           $this->_redirect('*/*/review');
Mage::log('End return from paypal');
            return;
        }
        catch (Mage_Core_Exception $e) {
            Mage::getSingleton('checkout/session')->addError($e->getMessage());
        }
        catch (Exception $e) {
            Mage::getSingleton('checkout/session')->addError($this->__('Unable to process Express Checkout approval.'));
            Mage::logException($e);
        }
        $this->_redirect('checkout/cart');
    }

The line where I detected the problem is $this->_checkout->returnFromPaypal($this->_initToken());

I think the problem is in the method returnFromPaypal, in the app/code/core/Mage/Paypal/Model/Express/Checkout.php file, in the line $this->_api->setToken($token)->callGetExpressCheckoutDetails();

 

Thanks for your help

 

Alessio

Re: Paypal Express Checkout return empty page (function setToken)

Hi Guys,

 

I have also some issue while returning back from PayPal my return URL stuck on the below URL. Can anyone help?

 

URL Blank Page.

https://www.letstango.com/paypal/express/return/?token=EC-98V69044A8584632R&PayerID=NMC82FBRRNATQ

 

Logs:

2017-07-27T11:01:22+00:00 DEBUG (7): Array
(
[url] => https://api-3t.sandbox.paypal.com/nvp
[SetExpressCheckout] => Array
(
[PAYMENTACTION] => Authorization
[AMT] => 647.80
[CURRENCYCODE] => USD
[RETURNURL] => https://www.letstango.com/paypal/express/return/
[CANCELURL] => https://www.letstango.com/paypal/express/cancel/
[INVNUM] => 100140017
[SOLUTIONTYPE] => Mark
[GIROPAYCANCELURL] => https://www.letstango.com/paypal/express/cancel/
[GIROPAYSUCCESSURL] => https://www.letstango.com/checkout/onepage/success/
[BANKTXNPENDINGURL] => https://www.letstango.com/checkout/onepage/success/
[LOCALECODE] => en_US
[ITEMAMT] => 647.80
[TAXAMT] => 0.00
[SHIPPINGAMT] => 0.00
[L_NUMBER0] => 49UH850V
[L_NAME0] => LG 49-Inch Super UHD 3D TV Television 49UH850V
[L_QTY0] => 1
[L_AMT0] => 647.80
[BUSINESS] =>
[NOTETEXT] =>
[EMAIL] => irfan@letstango.com
[FIRSTNAME] => irfan
[LASTNAME] => khan
[MIDDLENAME] =>
[SALUTATION] =>
[SUFFIX] =>
[COUNTRYCODE] => AE
[STATE] => Dubai
[CITY] => Dubai
[STREET] => LestTango
[ZIP] => 0
[PHONENUM] => 971528032182
[SHIPTOCOUNTRYCODE] => AE
[SHIPTOSTATE] => Dubai
[SHIPTOCITY] => Dubai
[SHIPTOSTREET] => LestTango
[SHIPTOZIP] => 0
[SHIPTOPHONENUM] => 971528032182
[SHIPTOSTREET2] =>
[STREET2] =>
[SHIPTONAME] => irfan khan
[ADDROVERRIDE] => 1
[METHOD] => SetExpressCheckout
[VERSION] => 72.0
[USER] => ****
[PWD] => ****
[SIGNATURE] => ****
[BUTTONSOURCE] => Magento_Cart_Community
)

[response] => Array
(
[TOKEN] => EC-5HK68326DY329845S
[TIMESTAMP] => 2017-07-27T11:01:22Z
[CORRELATIONID] => 83c6081a8190d
[ACK] => Success
[VERSION] => 72.0
[BUILD] => 36767331
)

[__pid] => 24123
)

Re: Paypal Express Checkout return empty page (function setToken)

<a href="https://ae.tejar.com/">best online shopping in uae</a>

Re: Paypal Express Checkout return empty page (function setToken)