onTransactionComplete called my code twice

yes you are right. I got it open with 2 browsers and diffrent account. If i close one browser it get sendet only once. So i guess i need to check if the userId from the transaction object equals the userid from the onAuthorized right?