I am trying to use Firebase Cloud functions and Stripe, and iOS (Swift). I want to use Firebase Cloud functions to perform the card charge as is required by Stripe. I am trying to use this example: Firebase Stripe Example
I uploaded the example they gave, but I need to modify the charge function slightly. I tried setting it to the file path I have in my real time data base, but I am not sure how to modify the entire thing so that It will work off of my realtime database structure. Such as grabbing the parameters it needs. Here is what my structure looks like:
after the Payments node is the userID.
I know that the function basically looks for database updates to the specific node, but I am not sure how to make sure it grabs the correct values from the child nodes. I hope I have described this in an understandable way. If I haven't let me know and I will do my best to reword. Thank you!