Magento PayPal Payment Pro does not send confirmation email

I have a problem with PayPal Payment Pro not sending confirmation email after credit card authorization. PayPal Express Checkout works just fine.

I see no way to change this. Can someone point me in the right direction to the file that I have to edit so that PayPal Payment Pro sends an order confirmation email after the payment is approved?

(Changing authorizeto salewill not work for me.)

Thank.

+4
source share
2 answers

PayPal Payment Pro .
, .

  • checkout_onepage_controller_success_action. , .

  • sales_order_payment_pay. , . .

1) config.xml

config.xml (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


    }        

}

,

+2

PayPal . , , . , PLZ (IPN). - Magento, .

0

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


All Articles