Skip to main content
Question

How do i restore customer purchases to firestore db

  • 28 December 2023
  • 1 reply
  • 45 views

Forum|alt.badge.img+4

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

sharif
RevenueCat Staff
Forum|alt.badge.img+9
  • RevenueCat Staff
  • 513 replies
  • January 4, 2024

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings