[英]Prestashop 1.7 Payment module
我正在为prestashop 1.7创建信用卡支付模块
如果交易成功或失败,我不知道如何在外部网址上发送帖子值并接收其响应。
你必须做这样的事情:
注册有趣的钩子( http://build.prestashop.com/news/module-development-changes-in-17/ ),然后在您的模块中创建如下函数:
public function hookHookName($params) { // Do things here }
专门使用此挂钩(第一部分是挂钩名称,第二部分是$ params):
Hook::exec('actionValidateOrder', array( 'cart' => $this->context->cart, 'order' => $order, 'customer' => $this->context->customer, 'currency' => $this->context->currency, 'orderStatus' => $order_status ));
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.