How to change or add user role after getting post request data about pay? [closed]

How to change or add user role after getting post request data about pay? [closed]

error code: 523