Apple Pay return values in different status

Hi,


I'm new in Apple development world. I'm currently working on my DB. But the only issue that I have is the returned JSONs in the following situations:

1- Success

2- Payment declined

3- Stop auto-renew

I need to store all these information in the DB but I can't find anything about the format of the returned JSON anywhere?!!


Also, if the user stopped the auto-renew, do I get a call from the server? Because as I heard from a friend. Can you find this info only in a page called "payments analysis"?


Thanks