Typically, the executor notifies credit card companies when someone has passed away. Or they may learn about it through credit reporting agencies, which can receive notification through the executor or Social Security Administration.