I never had any problem (points always credited correctly) at any chain (Marriott / IHG / Accor ) when it happens that, on vacation, we pay with my wife’s credit card
I don’t know if it’s because she’s of course in the same room with me, but the reservations are always under my name / account