A man claims he wants to send me money to my credit card. He wants me to send him a picture of both the front and back side. He claims that he’s going to send it to his accountant and put me on a payroll. He also wants my login information. I’m not sure what to do , it’s not like I have a balance on it or he can take any money out of my savings, but with the picture it gives him all of the information to use it online.
You can't add someone to payroll via credit card. If they want to add you to payroll they'd have you fill out an I-9 and likely a W-4, proper tax forms, but you shouldn't provide such information if you aren't actually accepting a proper job and have taken steps to verify the employer isn't a scammer in cases of online job opportunities.
If this person really wants to send you money suggest they use Venmo/Zelle or some other legitimate money transfer solution that doesn't require compromising security.
If they are unwilling to use a legitimate method, it's because they weren't interested in sending you money in the first place, only in scamming you.