Is it expected behavior for a user with more than 1000 transactions to experience over 2 minutes of processing time with this approach? Given this implementation, it seems likely that the Rate Limit of 50 RPS could easily be reached.
https://github.com/apple/app-store-server-library-python?tab=readme-ov-file#receipt-usage
try:
transaction_id = receipt_util.extract_transaction_id_from_app_receipt(app_receipt)
if transaction_id != None:
transactions = []
response: HistoryResponse = None
request: TransactionHistoryRequest = TransactionHistoryRequest(
sort=Order.ASCENDING,
revoked=False,
productTypes=[ProductType.AUTO_RENEWABLE]
)
while response == None or response.hasMore:
revision = response.revision if response != None else None
response = client.get_transaction_history(transaction_id, revision, request, GetTransactionHistoryVersion.V2)
for transaction in response.signedTransactions:
transactions.append(transaction)
print(transactions)
except APIException as e:
print(e)