Open ghost opened 5 years ago
I have the same question as well.
If we set verbose: true
, the in_app
array is logged in console with "Sandbox validation successful:
" but I couldn't find a way to access in_app
array to store each renewal transaction in database.
Figured out soon after my comment. You can access in_app array by using:
let allTransactions = appleReceipt.receipt.in_app;
I'm trying to get all receipts while validating one and thought it could be achieved using this package since a lot of other issues include
in_app
somewhere (the array of all receipts as defined in Apple's doc https://developer.apple.com/library/archive/releasenotes/General/ValidateAppStoreReceipt/Chapters/ReceiptFields.html)Our App is subscription based.
My code looks like this, I was expecting to see
in_app
in the response.But the response "only contains" (the usual, I guess.):
TL;DR: How can I get the
in_app
array? or... Is there another way to list all receipts?