Jump to content

Credit Card Details Update hook?


MACscr

Recommended Posts

Is there a hook I can use so that when a user updates their credit card info, I can fun a particular function? Right now I pretty much have to do the check on every client area page which I would like to avoid if possible:

 

function hook_foobar_credit_card($vars=null) {
if ($vars['clientareaaction'] == "creditcard" && $vars['successful'] == true) {
......
}
}

add_hook("ClientAreaPage",1,"hook_foobar_credit_card");

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