An Irish bookmaker took a $5 million hit Wednesday, paying out a small fortune to gamblers who took a chance on Donald Trump.

In October, gambling site Paddy Power doled out nearly $1 million in bets on a Clinton victory after a series of embarrassing stories by Trump made the Democrat’s victory appear to be a sure thing.

Paddy Power made the payout in what was at the time seen in the bookmaking business as a wild – and now costly – PR stunt.

“We’re in the business of making predictions and decided to put our neck on the line by paying out early on Hillary Clinton, boy did we get it wrong,” Paddy Power spokesman Lewis Davey said Wednesday.

“We’ve been well and truly thumped by Trump,” CNBC reported.

The Hillary Clinton-Trump race was believed to be the most wagered US presidential contest in the history of overseas betting.

As the campaign wrapped up Monday night, most bookies had Clinton as an approximate 1-to-5 favorite and Trump as an underdog around 4-to-1.

Overseas bookies could have made a killing with the upset result – but late action on long-shot Trump left books with only moderate profits, according to oddsmaker Danny Sheridan. Some books even stopped taking bets on Clinton in the final days.

“They were were afraid of taking a bath if Clinton won as they expected,” Sheridan said.