Wow! That's 2 charge-only failures within less than a week, seemingly caused by a voltage spike.
My first step would be to go through the list in post #3 here: HOW TO FIX A "DEAD" 500E that suddenly...
Then the list in post #1 of that same thread, & if it still won't charge, see if the codes that won't clear indicate the OBC.
The PIM is supposedly coded to the motor, but a used unit is a simple replace procedure, with no need to be coded to the car. The OBC is even less coded to the car, so it should also be a simple replace procedure.
My first step would be to go through the list in post #3 here: HOW TO FIX A "DEAD" 500E that suddenly...
Then the list in post #1 of that same thread, & if it still won't charge, see if the codes that won't clear indicate the OBC.
The PIM is supposedly coded to the motor, but a used unit is a simple replace procedure, with no need to be coded to the car. The OBC is even less coded to the car, so it should also be a simple replace procedure.