Jump to content

Trigger action on specific product purchase


boop

Recommended Posts

So I'm currently using software that is moderately underdeveloped and lacking in terms of abuse prevention. I'm looking into developing a system to lift restrictions on a user's 3rd party account when they purchase a specific product. Essentially, if said product is purchased, I need to send a simple POST request. What's the best way to go about this? I was thinking about a hook, but I'm not sure how to check whether a certain product was purchased in a hook.

Additionally, I was thinking about adding "verify" button (perhaps under the "other actions" area) when viewing a client's profile, which would essentially just manually send the POST request. However, if this just over complicates things, then it's hardly a necessity.

Any help is appreciated, thanks!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated