If you are in transit through Panama and will be staying within the international area, you must have the required COVID-19 test for your final destination, performed at your point of origin.
If you are in transit and intend to enter Panama (leave the international area), you must have the requirements for entering the country.