Update payment state function