This topic contains 1 reply, has 2 voices. Last updated by Bruce 3 years, 8 months ago.
Topic Author | Topic |
---|---|
Posted: Sunday May 5th, 2013 at 10:05 pm #49251 | |
I’m wondering what is the best method for handling changes to a users account when they complete a “Billing Update” form (meaning they are modifying their payment information)? The scenario is, when a users payment can’t be processed through Paypal, they are suspended and I am emailed about it. I then edit that users custom capabilities and add one I created that’s called “update_billing”. I have PHP checking for that capability when a user logins and it will direct them to Update Billing Form provided by s2member. If they then update their billing information, I need to take actions to automate the process of getting their account “active” again. At this point, they’ll still have the custom capability of “update_billing” and they’ll be redirected to the form once again. So, for now, I am notified from Paypal via an email that the user has modified their profile and then I manually go in and remove the custom capability from their account. Given my current setup, it would be ideal if I could add a custom capability to the Update Billing Form (something like “billing_updated”) and then include it into my PHP script to say if they have that capability then go ahead and let them in. OR, is there a more integrated method that I missing out on that handles such a scenario directly? Thanks, |