Two New York men were sentenced Thursday for their roles in a credit card fraud conspiracy in Maine in 2015.

Malik Delima, 26, was sentenced to 75 months in prison and Shaun Wray, 26, was sentenced to 20 months in prison, both in U.S. District Court in Portland. They were also both sentenced to three years of supervised release and ordered to pay $28,483 in restitution.

Both men, from Brooklyn, pleaded guilty last July to conspiring to manufacture and use fraudulent credit cards.

Authorities said the two bought equipment to make fraudulent credit cards and then bought more than 1,000 stolen credit card account numbers from a source in the Ukraine. They then made the phony credit cards and used them at stores in Maine and elsewhere.

Law enforcement officers raided an apartment in Auburn in March 2015, where they seized fraudulent credit cards, card blanks that were being made into fraudulent credit cards and equipment used to make the cards. Delima, Wray and others involved in the conspiracy were in the apartment and arrested at the time.

The investigation was conducted by the U.S. Secret Service, the U.S. Drug Enforcement Administration and the Auburn Police Department, with help from the Maine State Police Crime Laboratory.