Posts

Post not yet marked as solved
1 Replies
In my case, the payment sheet opens after the automatic subscription payment request, but the same error(Error=907) occurred when I pressed the cancel button on the payment sheet. There was an error that did not open the sheet when I requested payment again after cancellation, but the problem was an error caused by the previous transaction not being completed and remaining in the queue. Before requesting payment to SK Payment Queue, it works without any problems after adding code that forces all transactions to be terminated and removed. Before you request a restore transaction, check if there is an unfinished transaction. The code below was written before the transaction request. for transaction in SKPaymentQueue.default().transactions {       switch transaction.transactionState {       default :          SKPaymentQueue.default().finishTransaction(transaction)          SKPaymentQueue.default().remove(self)          break;       }     }