I want to make a purchase/restore button for my in app purchase. I want to check if restoring fails, and if so then prompt to purchase. I am using SKPaymentQueue.default().restoreCompletedTransactions() to restore purchases. If any one knows this would be a big help. Also please let me know if for some reason apple doesn't want the purchase and restore button to be the same button. Thankyou