Sandbox test account asking password repeatedly for iOS In-App Purchase

Viewed 1901

I developed an application in Swift language. I've added in-app purchases to remove ads. I also created a sandbox account to test. But then I forgot the information of this account. (I'm not sure of the information) The password entry screen is still displayed in a flashing screen display. Even if I reset the device and reload it, it did not benefit. Actually everything is working properly. This is my only problem.What should I do. I'm glad you helped me. Thank you.

enter image description here

2 Answers

I had this problem. If you are not completed transactions (for any reason) they stay in queue. And you will have problem with continual "Log in screen".

SKPaymentQueue.default().finishTransaction(transaction)

should be placed at the end of:

restore(transaction: SKPaymentTransaction)
fail(transaction: SKPaymentTransaction)
complete(transaction: SKPaymentTransaction)

This fixed my problem. I hope it help you.

Related