Magento Paypal Payflow链接始终拒绝付款

Magento Paypal Payflow链接始终拒绝付款,magento,magento-1.8,Magento,Magento 1.8,运行Magento 1.8.0.0 当用户使用Paypal PayFlow链接结账时,会返回一个弹出窗口,显示: 付款已被拒绝。请重试。 查看Paypal调试日志,它报告信用卡已被授权 所以我去看控制器: app/code/core/Mage/Paypal/controllers/PayflowController.php 我可以从下面的代码中看到,允许的订单状态为false,因此它会取消订单 /** * When a customer return to website from p

运行Magento 1.8.0.0

当用户使用Paypal PayFlow链接结账时,会返回一个弹出窗口,显示:

付款已被拒绝。请重试。

查看Paypal调试日志,它报告信用卡已被授权

所以我去看控制器: app/code/core/Mage/Paypal/controllers/PayflowController.php

我可以从下面的代码中看到,允许的订单状态为false,因此它会取消订单

    /**
 * When a customer return to website from payflow gateway.
 */
public function returnUrlAction()
{
    $redirectBlock = $this->_getIframeBlock()
        ->setTemplate('paypal/payflowlink/redirect.phtml');

    $session = $this->_getCheckout();
    if ($session->getLastRealOrderId()) {
        $order = Mage::getModel('sales/order')->loadByIncrementId($session->getLastRealOrderId());

        if ($order && $order->getIncrementId() == $session->getLastRealOrderId()) {
            $allowedOrderStates = array(
                Mage_Sales_Model_Order::STATE_PROCESSING,
                Mage_Sales_Model_Order::STATE_COMPLETE
            );
            if (in_array($order->getState(), $allowedOrderStates)) {
                $session->unsLastRealOrderId();
                $redirectBlock->setGotoSuccessPage(true);
            } else {
                $gotoSection = $this->_cancelPayment(strval($this->getRequest()->getParam('RESPMSG')));
                $redirectBlock->setGotoSection($gotoSection);
                $redirectBlock->setErrorMsg($this->__('Payment has been declined. Please try again.'));
            }
        }
    }

    $this->getResponse()->setBody($redirectBlock->toHtml());
}
退回的订单状态为:待付款


我需要帮助找出是什么错误地设置了订单状态

我在Magento 1.14上,同样的事情也发生在我身上。