2016-11-23 83 views
4

我的PayPal付款專業版在信用卡被授權後沒有發送確認郵件。 PayPal Express Checkout工作得很好。Magento PayPal付款專業版不發送確認電子郵件

我沒有看到一個選項來改變這一點。任何人都可以指出我應該編輯哪個文件的正確方向,讓PayPal付款專家在付款授權後發送訂單確認電子郵件?

(改變authorizesale不會爲我工作。)

謝謝。

回答

0

PayPal不會將電子郵件通知發送給授權付款。一旦您捕獲了此授權的金額,電子郵件通知將發送給您。 如果您想獲得傳入授權的通知,請使用即時付款通知(IPN)。請檢查Magento後端系統中的設置以配置它。

2

貝寶付款專業不發送確認電子郵件設施。
但是您可以通過在收到付款後創建觀察者來實現它。

  • 您可以使用事件checkout_onepage_controller_success_action。如果您的訂單成功,則可以使用此 。

  • 還有另一個事件sales_order_payment_pay。如果您的訂單成功,則可以使用此 。它也可能在你的情況下使用 。

1)請呼叫觀察者文件自定義config.xml中

config.xml文件定義你的模塊,並聲明的事件偵聽特定事件(當onepage結帳過程完成checkout_onepage_controller_success_action發送,sales_order_payment_pay是當付款確認後發送)。

<?xml version="1.0"?> 
<config> 
    <modules> 
     <Namespace_Modulename> 
      <version>0.1.0</version> 
     </Namespace_Modulename> 
    </modules> 
    <frontend> 
     <events>    
      <sales_order_payment_pay> 
       <observers> 
        <Namespace_Modulename_Customevent> 
         <type>singleton</type> 
         <class>Namespace_Modulename_Model_Observer</class> 
         <method>customFunction</method> 
        </Namespace_Modulename_Customevent> 
       </observers> 
      </sales_order_payment_pay> 
     </events> 
    </frontend>  
</config> 

2)創建observer.php文件的模塊/型號目錄裏面並粘貼此代碼

<?php 
    class Namespace_Modulename_Model_Observer 
{ 
    public function customFunction(Varien_Event_Observer $observer) 
    { 

     $order_id = $observer->getData('order_ids'); 
     $order = Mage::getModel('sales/order')->load($order_id); 
     //your code here 


    }   

} 

告訴我,如果進一步的幫助需要

相關問題