Skip to content

Commit

Permalink
Update README with v2 endpoint version
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderjordanbaker committed Jun 14, 2024
1 parent ee00378 commit efc3427
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 efc3427

Please sign in to comment.