donate button option does not appear if the user is logged in, so create one without loggedin and change this code to match the registered user code, for example, emailid, etc. But I do not know what is right or wrong. I used this method for one project and it works great.