presentCodeRedemptionSheet is redirecting to Appstore.

I'm opening presentCodeRedemptionSheet in my app to redeem offer codes. It is used to open the sheet in the app. For some reason, it opened and started loading in the past few days, then redirected to the Appstore and left the app.

presentCodeRedemptionSheet is redirecting to Appstore.
 
 
Q