Added isset to if statements
Update payment refrence