Plugin Details
Home / Plug-in market / WebHook
WebHook
It is used to conveniently connect external systems. For example, after the order payment is completed, the SKU number of the order is transferred to the business system, so that the virtual items purchased in the mall can be added to the business system in real time. For example,
To connect the users of the business system with beikeshop, you can record the other party's user ID, or associate them through mobile phone number, email, userFlag, etc.
beikeshop has added a VIP service product, the SKU number is "vip-1"
The event configured in this plug-in is service.state_machine.change_status.after
Determine event_code==='service.state_machine.change_status.after' && status === 'paid' in the callback of the business system, otherwise ignore
Loop $data['order']['orderProducts'] to determine product_sku==='xxx' to $data['order']['customer']['id'] to increase VIP margin
Open source address: shellus/beikeshop-webhook (github.com)