Managing user balance on firebase

Thank you in advance for your cooperation. I am using firebase real-time database to store user data in something like this format

Users
     5Jy1DTJDVEZDfv6VKUgQAmg9sog2
         username: Test
         email: email
         balance: 100

I want to add a payment system to top up a user’s balance (planned to use stripe).
It is also necessary that the user can transfer funds to the balance of another user.
Please tell me how to do this safely, and is it worth using firebase’s real-time database and stripe for this?

Source: Ask Javascript Questions

LEAVE A COMMENT