Update payment function