If your transaction is in pending status at the time of your company's month-end closing, this transaction will be reflected in your payroll, regardless of its final status, as the amount is currently withheld.
Don't worry, if this transaction is finally rejected, the amount will be refunded to you as an accumulated balance. In this way, you will not be charged twice. In this article, you will find all the information about the accumulated balance.