Nobody can promise it's accepted. Ask your airline first.
What Panama's immigration service says
The National Migration Service lists the requirements for foreigners to enter in Article 43, on a page in Spanish. Item 7 asks for "pasaje de retorno a su país de origen o residencia, cuando la categoría migratoria lo requiera": a return ticket to the country of origin or residence, when the migratory category requires it. Item 6 asks for the means to pay one's expenses, with no amount given. The source is the service's page for tourists.
The page does not say which categories require the ticket. It speaks of a return ticket and does not mention an onward one.
What the UK government says
The UK advice says that "at Panamanian border control, you may need to" show a return or onward ticket, "particularly if you arrive by land from Costa Rica" and are not a legal resident of Costa Rica. The same list covers money: you may need to prove that you have at least 1000 US dollars, or a credit card. It adds that you can visit for up to 3 months without a visa if you arrive by land or air. The source is the UK travel advice for Panama.
Two statements, not one rule
The two pages do not say the same thing. Panama's law ties the return ticket to the migratory category and says nothing of which categories. The UK advice says a traveller may need to show a return or onward ticket and names one case where that is likely. Neither source tells a reader whether their own category is one that needs a ticket, so this page cannot say it for you.
Where a reservation fits
Neither source says what form the ticket takes or whether a reservation counts. The officer at the border decides. The guide on accepted documents sets out what border officers, airlines and consulates each accept, and the one on the check-in counter covers the desk at the airport.
Before you fly
Check the sources above, since rules change, and look up your destination to see what it asks for and whom the rule covers.