In my iOS app, if I click multiple times before the purchase window appears, the purchase window appears. several times. And if I managed to click 5 times, in the window that appeared I bought the purchase, after hiding the purchase window 4 times I will see a message that the purchase has already been purchased. I expected the following message in the console:
INFO: 💰 Purchasing Product 'product_id' from package in Offering 'default'
INFO: 💰 Purchasing Product 'product_id' from package in Offering 'default'
INFO: 💰 Purchasing Product 'product_id' from package in Offering 'default'
ERROR: 😿‼️ The operation is already in progress for this product.
ERROR: 💰 Product purchase for 'product_id' failed with error: Error Domain=RevenueCat.ErrorCode Code=15 "The operation is already in progress for this product." UserInfo={NSLocalizedDescription=The operation is already in progress for this product., source_function=addPurchaseCompletedCallback(productIdentifier:completion:), source_file=RevenueCat/PurchasesOrchestrator.swift:967, readable_error_code=OPERATION_ALREADY_IN_PROGRESS_FOR_PRODUCT_ERROR}
And the purchase window will appear once. Instead, in the console after 5 taps, 5 messages about the purchase appear and. the purchase window pops up 5 times:
mPurchases] - INFO: 💰 Purchasing Product 'product_id' from package in Offering 'Main'
Purchases] - INFO: 💰 Purchasing Product 'product_id' from package in Offering 'Main'
Purchases] - INFO: 💰 Purchasing Product 'product_id' from package in Offering 'Main'
aPurchases] - INFO: 💰 Purchasing Product 'product_id' from package in Offering 'Main'
aPurchases] - INFO: 💰 Purchasing Product 'product_id' from package in Offering 'Main'
These are logs from two different projects. The application with the first log works as it should, and in the second one, the repeated opening of windows needs to be fixed. I can't understand why two identical actions in the first project cause an error in the console and correct operation. payment, and in the second project there is no error in the console and the payment is called several times?