A4J
A4J

Reputation: 889

Best way to deal with creation of user account after successful purchase?

I'm wondering what might be the best way to create a user account once a successful payment is made, this is my app's flow at the moment:

Should I include a password and password-confirm field and use 'accepts_nested_attributes_for :user' in my Order model, or, would it be better to let them simply confirm the order (to keep things simple) and just generate a random password and then email that to them with their order confirmation/invoice via observers (and perhaps force a password change on first visit).

What do you think is better? (I'm trying to keep in mind things like security/risk of emails going into spam folder etc)

Any thoughts on the matter? I guess both are ok - but posting just in case I'm missing something.

Upvotes: 0

Views: 73

Answers (1)

wavedrop
wavedrop

Reputation: 530

My personal opinion is that you offer both. Once you implement it you will see which way your users gravitate to and then you can select one based on their habits.

You want to make it the most enjoyable experience for your users so really you have to give them what they want. Depending upon your audience and product you could argue either way.

It might be as simple as having a check box that says "create user account automatically and email the details"

In the end it's the customer you have to satisfy so let them choose initially. The'll tell you what they want.

Good luck.

Upvotes: 1

Related Questions