PayPal orders are automatically canceled in Magento

I have this strange problem in Magento when someone makes an order using PayPal Express Checkout. Each order comes so often, and then the order is canceled in a few seconds. The comment left is as follows:

Canceled order online. Amount: $59.23. Transaction ID: "XXXXXXXXXXXXXXXXX-void".

(just in case, the identifier is closed)

Now our customers swear that they do not cancel their orders, and when we ask PayPal, they say that this is a problem on our side.

Has anyone heard of this issue, and do you know about a fix? I am running Magento Enterprise 1.8.

+3
source share
1 answer

. , PayPal Express PayPal. :

http://www.magentocommerce.com/bug-tracking/issue/?issue=9894

, , / PayPal.


Magento PayPal Express ( PayPal) .

: 1) Paypal, . 2) , Paypal PayPal, :

" PayPal ".

, , .

PayPal.

, "DoExpressCheckoutPayment" PayPal. , , "successpageredirectrequested" "true". , PayPal . PayPal .

Magento , PayPal ( "successpageredirectrequested" true), PayPal .

, Magento, app/code/core/Mage/Paypal/Controller/Express/Abstract.php

"public function placeOrderAction()". :

// redirect if PayPal specified some URL (for example, to Giropay bank)
$url = $this->_checkout->getRedirectUrl();
if ($url) {
$this->getResponse()->setRedirect($url);
return;
}
$this->_initToken(false); // no need in token anymore
$this->_redirect(?checkout/onepage/success?);
return;
}

"if", :

//if ($url) {
//$this->getResponse()->setRedirect($url);
// return;
//}

, . , Magento, Magento.

+2

Source: https://habr.com/ru/post/1782789/


All Articles