Skip to content

Commit

Permalink
Merge pull request #106 from alexanderjordanbaker/GetTransactionHisto…
Browse files Browse the repository at this point in the history
…ryV2READMEUpdate

Update README with v2 endpoint version
  • Loading branch information
alexanderjordanbaker authored Jun 16, 2024
2 parents bad115d + efc3427 commit f73bb35
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ public class ExampleVerification {

```java
import com.apple.itunes.storekit.client.AppStoreServerAPIClient;
import com.apple.itunes.storekit.client.GetTransactionHistoryVersion;
import com.apple.itunes.storekit.migration.ReceiptUtility;
import com.apple.itunes.storekit.model.Environment;
import com.apple.itunes.storekit.model.HistoryResponse;
Expand Down Expand Up @@ -152,7 +153,7 @@ public class ExampleMigration {
List<String> transactions = new LinkedList<>();
do {
String revision = response != null ? response.getRevision() : null;
response = client.getTransactionHistory(transactionId, revision, request);
response = client.getTransactionHistory(transactionId, revision, request, GetTransactionHistoryVersion.V2);
transactions.addAll(response.getSignedTransactions());
} while (response.getHasMore());
System.out.println(transactions);
Expand Down

0 comments on commit f73bb35

Please sign in to comment.