I am setting up a new ecommerce project with angular 2 and firebase. My issue is how to integrate a paypal button and when customers click on it, they will be redirected to
Thanks all for the solutions and here is our delayed solution: as Firebase controls the backend, it is impossible to setup a payment system on it, we setup a light-weight nodejs express server hosted on google cloud platform which can communicate with paypal to receive IPN data from paypal each time our customer makes a payment. The IPN data will be used to check with realtime data from Firebase and updates payment status to client side.