How to synchronize transactions?

If communication is interrupted during the purchase process
The transaction will return a "failed" status
It may be "successful" on Apple servers.

As a result, the transaction status
Differences occur between Apple servers and devices.

At this time, in order to eliminate this gap immediately

I ran

Code Block
restoreCompletedTransactions()

You will be asked for a password
This method gives users a sense of distrust.
It seems to be useless.

Is there another way to sync transaction differences immediately?

Thank you.
How to synchronize transactions?
 
 
Q