When the sandbox simulates payment, the sandbox account is not logged in but it will directly return the payment success

When the sandbox simulates payment, the sandbox account is not logged in but it will directly return the payment success.It feels like this happens when the system is already logged in to an Apple account.

- (void)paymentQueue:(SKPaymentQueue *)queue updatedTransactions:(NSArray<SKPaymentTransaction *> *)transactions {
    if(SKPaymentTransactionStatePurchased == 
        transaction.transactionState) {
        //do sth.
    }

My in-app purchase item type is a consumable item.

It should be the one that has been bought and it will directly return to success

When the sandbox simulates payment, the sandbox account is not logged in but it will directly return the payment success
 
 
Q