You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have 10 products purchased. When I want to restore it, code is waiting tooo much because for every product, it goes to server again to make receipt verification because of the code:
I assume you're using RMStoreLocalReceiptVerificator.
Simply implement your own RMStoreReceiptVerificator that always validates transactions with state SKPaymentTransactionStateRestored. You can use the code of RMStoreLocalReceiptVerificator for the other transactions.
That said, I find this requirement a bit odd. If you think your users can hack new transactions, then why wouldn't they hack restored transactions as well?
It should be noted that receipt verification takes more time on sandbox because Apple wants you to always try with the production environment first.
Hi;
I have 10 products purchased. When I want to restore it, code is waiting tooo much because for every product, it goes to server again to make receipt verification because of the code:
{
SKPaymentTransaction *originalTransaction = transaction.originalTransaction;
SKPayment *payment = originalTransaction.payment;
RMStoreLog(@"transaction restored with product %@", payment.productIdentifier);
}
I commented out the verification part. But I still want to verify when user wants to buy a product. So I cannot make receiptVerificator nil.
The text was updated successfully, but these errors were encountered: