Payments in your app are easy with Firebase
So you are trying to make a really fantastic app, but it requires payments to be made in the app which adds a whole spectrum of complexities such as data breaches, fraudulent activities, different payment methods, refunds etc. Setting up your own servers will not only take a lot of time and money, but it will also be crucial to not compromise or mishandle any of the data or it will lead to a loss of clients or legal action against you.
However, with Firebase we are able to use existing payment processors such as PayPal or Stripe, to handle communication with the credit card APIs. Our app is not aware of payments and we don’t store the client's payment data.
Firebase has made a fantastic tutorial explaining the code and giving a demo on their website — I’ve used this code as a base to build my own app shown in this article. The links are under further reading.
In this article, we will be focusing on the capabilities and not technicalities.