After a lot of testing I end up with a broken appStoreReceiptUR file.
On the appdelegate I read the appStoreReceiptURL and then I validate the receipt as explained here https://developer.apple.com/library/ios/releasenotes/General/ValidateAppStoreReceipt/ValidateAppStoreReceipt.pdf
and I get a lot of pending in_app transactions to finish (just showing two below)
{
environment = Sandbox;
receipt = {
"in_app" = (
{
"is_trial_period" = false;
"original_purchase_date" = "2015-06-28 18:07:10 Etc/GMT";
"original_purchase_date_ms" = 1435514830000;
"original_purchase_date_pst" = "2015-06-28 11:07:10 America/Los_Angeles";
"original_transaction_id" = 1000000161134923;
"purchase_date" = "2015-06-28 18:07:10 Etc/GMT";
"purchase_date_ms" = 1435514830000;
"purchase_date_pst" = "2015-06-28 11:07:10 America/Los_Angeles";
quantity = 1;
"transaction_id" = 1000000161134923;
},
{
"is_trial_period" = false;
"original_purchase_date" = "2015-06-29 17:16:29 Etc/GMT";
"original_purchase_date_ms" = 1435598189000;
"original_purchase_date_pst" = "2015-06-29 10:16:29 America/Los_Angeles";
"original_transaction_id" = 1000000161282043;
"purchase_date" = "2015-06-29 17:16:29 Etc/GMT";
"purchase_date_ms" = 1435598189000;
"purchase_date_pst" = "2015-06-29 10:16:29 America/Los_Angeles";
quantity = 1;
"transaction_id" = 1000000161282043;
}
);
};
status = 0;
}
How can I retrieve those SKPaymentTransaction objects to then call.
[[SKPaymentQueue defaultQueue] finishTransaction:transaction];