let payment = SKPayment(product: product)
SKPaymentQueue.default().add(payment)
According to the above code section I tried to purchase a product but some times it immediately comes to the following method
func paymentQueue(_ queue: SKPaymentQueue, updatedTransactions transactions: [SKPaymentTransaction]) {
without prompting window for user iTunes credentials and it returns wrong SKPaymentTransaction state as .purchased.
Hard to find the issue here since it is a random issue.
