Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/magento/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 使用PayPal交易导入Magento订单CSV?_Php_Magento_Csv_Paypal_Import - Fatal编程技术网

Php 使用PayPal交易导入Magento订单CSV?

Php 使用PayPal交易导入Magento订单CSV?,php,magento,csv,paypal,import,Php,Magento,Csv,Paypal,Import,我使用CSV扩展将我的旧订单导入到Magento中,效果非常好 当我尝试将付款方式设置为“paypal_express”时,它仍在导入“checkmo”类型的订单 查看第182行的源代码文件时: /app/code/community/Raveinfosys/Exporter/Model/Createorder.php 我发现: $orderPayment = Mage::getModel('sales/order_payment') ->setStoreId($th

我使用CSV扩展将我的旧订单导入到Magento中,效果非常好

当我尝试将付款方式设置为“paypal_express”时,它仍在导入“checkmo”类型的订单

查看第182行的源代码文件时:

/app/code/community/Raveinfosys/Exporter/Model/Createorder.php
我发现:

$orderPayment = Mage::getModel('sales/order_payment')
          ->setStoreId($this->store_id)
          ->setCustomerPaymentId(0)
          ->setMethod('checkmo')
          ->setPoNumber(' - ');
         $order->setPayment($orderPayment);
也就是说,付款方式的价值是静态的。所以我继续把它改成这样:

$orderPayment = Mage::getModel('sales/order_payment')
          ->setStoreId($this->store_id)
          ->setCustomerPaymentId(0)
          ->setMethod($sales_order_arr['payment']['method'])
          ->setPoNumber(' - ');
         $order->setPayment($orderPayment);
现在的问题是,它试图通过PayPal服务器验证支付,并给出PayPal验证错误

我想要的是使用PayPal方法创建订单,而不通过PayPal进行验证,因为我有很多订单要导入

任何帮助都将不胜感激。谢谢