How to trigger an event on payment received in magento?

前端 未结 2 649
闹比i
闹比i 2020-12-14 13:12

Greetings, in Magento I want to trigger an event, once an order has been set to processing (by gateway confirmation or manually) that, example: If a general customer (id 1)

2条回答
  •  情歌与酒
    2020-12-14 13:59

    You can create an observer for the "sales_order_payment_pay" event. Here is a cheatsheet of the events in magento 1.3.

    And an explanation of how to create observer methods. Links courtesy of the excellent activecodeline and inchoo sites.

提交回复
热议问题