In app purchase, persist purchase on BE

What is the best way to store an in app purchase on the backend on the server so I can implement business logic ?