Joke Collection Website - Blessing messages - Apple and Google refund information notice

Apple and Google refund information notice

For refunds, different countries or regions will have different "unconditional refund periods", such as Apple.

Response subject notification parameter detail document

The server notification returned from the App Store is a JSON data refund * * * * notification, for example:

Here I mainly focus on two areas.

Here we use postman to test it.

1. Request/Token Interface

2. Grant _ type = urn: IETF: params: OAuth: Grant-type: jWT-bearer, which asserts that the $jwtAssertion parameter is used.

Save the returned authorization token access_token.

Use getrequest/androidpublisher/v3/applications/{packagename}/purchases/void purchases.

Start Time: the earliest time you want to void the purchase transaction in the response. By default, the start time is set to 30 days ago. Note: the startTime here is milliseconds.

MaxResults: the maximum number of voided purchase transactions in each response. By default, this value is 1000. Note that the maximum value of this parameter is also 1000.

Token: continuation token in the previous response; Allows you to see more results.

Google reply information document

Here I mainly focus on two areas.

VoidedTimeMillis (refund time)

Order Number (Google Order Number)

VoidedPurchases stores refund order information of maxResults. If the number of results exceeds the number specified in the maxResults request parameter, the response will contain a nextPageToken value. Here, I wrote a recursive function to determine whether the nextPageToken is empty. If it is not empty, it will be passed to the subsequent request to see more results.