Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果交易成功,我需要激活用户。使用 Payum Bundle 收到 IPN 后,我应该监听什么事件?
Payum\Bundle\PayumBundle\Controller\NotifyController::doAction似乎没有发送任何事件。这个控制器有什么用?
Payum\Bundle\PayumBundle\Controller\NotifyController::doAction
经过一些实验和阅读更多源代码后,我发现我们可以将所需的行为(发送电子邮件、更新数据库)实现为操作并将其标记payum.action或简单地将其添加到目标 Payum 上下文中。
payum.action
services: acme.sample_action: class: Acme\PaymemtBundle\Payum\Action\SampleAction tags: - { name: payum.action, factory: paypal_express_checkout_nvp }