Jump to content

Credit Card Add - HOOKPOINT? Where is it ? What it is called?


JamesWill

Recommended Posts

There doesn't seem to be any hooks for this specifically but what you could do is use the ClientAreaPage hook and to detect a client updating their credit card information.

 

function check_for_credit_card_update($vars) {
 if ($vars['clientareaaction'] == "creditcard" && $vars['successful'] == true) {
   // send your email
 }
}


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

 

This would only work when updating the credit card from client area and not when updating the credit card when paying an invoice.

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