Question

How do i restore customer purchases to firestore db

  • 28 December 2023
  • 1 reply
  • 20 views

Badge +3

Hello Team,

So getting straight to the point, I was managing (storing, updating) entitlements manually, i.e when user makes a purchase from my app, I retrieve all the entitlement ids and store it in firestore -> users collection in unlocked_entitlement field. Now I realised that client (my app) should not be used to update purchase details. I learnt about webhooks recently and thought of integrating it with firebase and use it as SSOT to detect purchases. How do I store all the customers data that have already made a purchase?


1 reply

Userlevel 5
Badge +9

Hey @f-d-e8d39c,
 
Unfortunately it's not possible to import existing customers into Firestore using our integration, so you should continue doing that yourself. However, our integration can be used for new customers. Sorry for the inconvenience, let me know if you have any other questions.

Reply