Receipt verification issue in production environment

Hello team,

It'd be very grateful if you give us some advice for our issue. It's about receipt verification in production environment. Details are as follows.

  1. User tried to purchase consumable IAP in production environment.
  2. Price is charged for IAP.
  3. After that, tried to verify receipt using the receipt of the transaction, but it failed with an error message. "21004 The shared secret you provided does not match the shared secret on file for your account."
  4. This error occurs only sometimes, not always. Most of purchase succeeded without this issue.
  5. For your reference, we've sold subscription IAP but now stopped to sell subscription IAP since last year. And we've been transferred this app from other iOS team last year.
  6. Our iOS developer account have configured both primary shared secret and app-specific shared secret for this app.

I've found the similar issue with ours. https://forums.developer.apple.com/forums/thread/746202

Thank you.

Best regards

Hello!

Did you look into using App Store server library to verify receipts instead of using the deprecated /verifyReceipt endpoint:

Also, please report the issue you are facing with example requests and post your FB# ticket number here for reference: https://bugreporting.apple.com

Receipt verification issue in production environment
 
 
Q