Greetings,
Looking for best practices of implementing the following scenario - we would like to register users only after they have successfully completed an online purchase on our web site.
I.e. when anonymous user decides to purchase from the website, we would prompt to choose their username/password or associate FB/Google account for SSO, then initiate payment for service being offered. If the payment comes through, then the user account is provisioned. If the payment fails or user quits payment workflow half way through (e.g. cancels or closes browser before submitting the payment), no user shall be provisioned.
We do not want to create "temporary"/disabled accounts via .NET and make sure to discard them later if the payment is not completed e.g. within 24 hours., but would rather keep registration information users entered, in a separate "potential accounts" table. And if they entered their FB/Google account we would want to be able to validate that the user entered a valid FB/Google account, and save the info in the "potential accounts" table. After receiving payment confirmation, our system will provision actual user account. A large number of new users is expected (thousands per year).
Are there built in services/providers or any best practices or examples of implementing such scenario?
Thanks!