react-native-iap icon indicating copy to clipboard operation
react-native-iap copied to clipboard

validateReceiptIos method endpoints are deprecated by apple.

Open Tarun24RN opened this issue 1 year ago • 1 comments

Description

I am using validateReceiptIos to validate receipts in ios, but they are deprecated now. Is there any update about this?

https://developer.apple.com/documentation/appstorereceipts/verifyreceipt#:~:text=Deprecated-,The%20verifyReceipt%20endpoint%20is%20deprecated,-.%20To%20validate%20receipts

How we handle this now and can we still verify receipt on device? Also is there any way through which we can check the refund status of auto-renew subscription which are refunded by apple directly in iOS.

Environment:

react-native-iap: 12.15.7 react-native: 0.74.0 Platforms (iOS, device):

Tarun24RN avatar Jan 17 '25 06:01 Tarun24RN

Hi @Tarun24RN, did you has some alternative solutions now? I'm in that condition too. Currently using in-app purchase type Product Consumable, I can't get getPurchaseHistory and IapIosSk2.latestTransaction, so I thought must validate the receipt first using validateReceiptIos but always got {"status": 21002}

vstacked avatar Jan 31 '25 07:01 vstacked

I’m closing all issues reported in versions below 14, as the library now supports the new architecture with NitroModules and has been completely revamped.

You now need purchaseToken to validate receipt which is jwsRepresentation and this is for Storekit2 validation.

hyochan avatar Sep 30 '25 18:09 hyochan