Getting wrong sandbox user receipt (Auto-renewable Subscription)

I am trying to test auto-renewable subscription using sandbox account.

Suppose I have A sandbox account:- now i have purchase some plan and test my case. After some time i logged out.

Now I have B sandbox account:- I logged into it and buy some plan. After some time when i fetch the receipt it is giving the purchase history of 'A' sandbox account, but i am not logged into it currently logged in user is B.
I am experiencing the similar problem but with any IAP.

Using a clean sandbox test user with no IAP's purchased, I ask to restore receipts and I get all sorts of receipts delivered for other (now deleted) sandbox test users.

I have tried deleting all sandbox accounts and using new ones - same problem. I have tried removing the receipt (forcing re-authentication) - same problem. I have tried restarting the mac - same problem.
I have experienced the same problem.
I solved the problem by rebooting the devices.
I said that I solved the problem by rebooting the devices, but I was not collect perfectly.
I refresh the receipt by SKReceiptRequest, then I solved the problem perfectly.
https://developer.apple.com/documentation/storekit/skreceiptrefreshrequest

Getting wrong sandbox user receipt (Auto-renewable Subscription)
 
 
Q