Introduction
Explanation
With hooks, you can extend shops functionality, by for example denying purchases or sales based on the payload, or something afterwards. Like for example, giving a user a special item after purchase, or logging the sale to an external system.
Credits
Hooks used in shops are taken from Qbox core with a permission from them. All credits for hooks functionality goes to Qbox and Ox (now CommunityOx) team.
Source
Original source used in shops can be found here. File is not escrowed in shops and full credits are given inside the file.