Php 使用PayPal交易导入Magento订单CSV?
我使用CSV扩展将我的旧订单导入到Magento中,效果非常好 当我尝试将付款方式设置为“paypal_express”时,它仍在导入“checkmo”类型的订单 查看第182行的源代码文件时: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
/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进行验证,因为我有很多订单要导入
任何帮助都将不胜感激。谢谢