related with my previous post.
On vm On checkout, ask for registration unmarked; Only registered users can checkout marked.
I need that when the guest has made the purchase and payment is confirmed become a registered user in all the cases.
now the flow is: checkout, register, send mail register to user, payment gateway answer ok, change order state, mail to user with purchase made message.
the problem appears when the payment is rejected: the user is registered and the registration email is already sent.
I need some flow as: checkout, payment gateway answer ok, register, send mail register to user, change order state, mail to user with purchase made message.
then payment not succesful are not becoming registered users.
Any tip? how to do it? where and how to hack?
Thanks in advance