I have gone through the apple docs regarding validating our receipt. But I am getting status 21002 always (sandbox testing or production testing). I need to get the expiration date and other stuff to be implemented in my project.
Used this document for receipt validation
https://developer.apple.com/documentation/storekit/in-app_purchase/validating_receipts_with_the_app_store