Hi,
We are developing Web and Mobile apps with Firebase as backend and Braintree for payments.
Below are the approaches we thought of. Could anyone advise what is the right way or what corrections we should make in case we are wrong.
for Ionic Mobile App:
Approach 1:
1. Login using Firebase authentication.
2. For processing Braintree payments from Ionic app, post to NodeJS server using REST.
3. Using ExpressJS, verify whether the user is authenticated in Firebase and process the payments.
Approach 2:
1. Login using Firebase authentication.
2. For processing Braintree payments from Ionic app, post to Firebase Queue.
3. Use ExpressJS to monitor Firebase Queue and process the payments.
for Web Application(Angular):
Approach 1:
1. Login using Firebase authentication.
2. For processing Braintree payments from Ionic app, post to NodeJS server using REST.
3. Using ExpressJS, verify whether the user is authenticated in Firebase and process the payments.