In-App Purchase in apple review gives error:SKErrorDomain with code 2

Hi, My app in-app purchase downloading from TestFlight or debug Xcode making purchase works correctly but it reject in apple review because during the test purchase didn’t work and occurred error:SKErrorDomain with code 2. This error in general appear when during the purchase user click Cancel. I have contacted apple board, they said that Your app does not comply with App Store Review Guideline 2.1. So how can i try in production since in TestFlight and debug it works? I really confused how to try solution for it?

If you are still in need of assistance, please provide more details in a ticket that can be reviewed. http://feedbackassistant.apple.com

Ok. Thank you.

In-App Purchase in apple review gives error:SKErrorDomain with code 2
 
 
Q