21002
The data in the receipt-data
property is malformed or the service experienced a temporary issue. Try again.
https://developer.apple.com/documentation/appstorereceipts/status
Could you share more details?
Alternatively, if you are starting fresh with a new implementation, note that the verifyReceipt endpoint is deprecated. To validate in-app purchases on your server without using receipts, call the App Store Server API to get Apple-signed transaction and subscription information for your customers, or verify the AppTransaction and Transaction signed data that your app obtains using StoreKit 2. You can also get the same signed transaction and subscription information from the App Store Server Notifications V2.