Using PhonePe for transactions at gambling sites is completely legal as long as you make sure that the online casino site you are using is properly licensed, and is legal in your state.