paymentQueue method
Implementation
void paymentQueue(SKPaymentQueueWrapper queue, SKPaymentTransactionWrapper transaction) {
if (transaction.transactionState == SKPaymentTransactionStateWrapper.purchased) {
// Complete the purchase on success
} else if (transaction.transactionState == SKPaymentTransactionStateWrapper.failed) {
AppLogs.showErrorLogs("Transaction failed: ${transaction.transactionState} - ${transaction.error}");
SKPaymentQueueWrapper().finishTransaction(transaction);
}
}