Ionic + Firebase Database security + PayPal

Thanks so much for your follow up!

Unfortunately I can’t change the structure of my Database, due to it’s intrinsic nature, so I need to keep all listings together.

I feel what I need to do is:

  1. User makes payment on the frontend via PayPal
  2. PayPal sends a Webhook to my URL (Firebase Function)
  3. Firebase Function processes this request and as Admin writes to the node

What I’m stuck with is how to configure the PayPal Webhook. I don’t seam to find a way or a tutorial on this. As I only only need to specify the URL to send the data to but also some more data which PayPal received from the frontend.

Any suggestions on how to go about this?

Many thanks!!!