I have a membership registration process that requires a monthly subscription fee. I have a script that can update my member database using an IPN script. Iām curious how best to test a new user after successfully sending a payment. Here is the workflow that I provided for this process, but please let me know if you did something like this in a more direct way.
Step 1) The new user completes the registration of the form, which includes their username and password.
- At this point, I would take the password that they generated and manipulate it in the database. Thus, if they try to log in, they will be denied access.
Step 2) The user sends a credit card payment through a third-party processor. A third-party processor sends an IPN to update the database.
- Using an IPN script, once their payment method is verified, I will return the password back to the one they created.
Step 3) The user is verified with a successful payment.
- Since their password returns to the one they originally wanted, the user can log in.
I see no reason why this should not work, but it seems awkward. Is there a better way? Thanks.
source share