Solved this problem on my project.
Updated my deprecated code to StoreKit 2.
As I've been using UIKit, I needed to call purchase(confirmIn:options:) function.
https://developer.apple.com/documentation/storekit/product/purchase%28options:%29#Discussion
Topic:
App & System Services
SubTopic:
StoreKit
Tags: