I often build payment integrations in my applications. When I receive responses from PayPal or square I am usually able to record a bunch of data from the payment partner. Some of that data I could use to maintain a local copy of the transaction which occurred on the payment facilitator's service.
Often I record the data which I feel supports the needs of the application in question. But I am interested in what is considered standard practice for this data management?