Change role after payment

How can I make it change role after payment?