Appliance repair parts seem to generally be either very affordable or else extremely expensive/unavailable, based on my handful of forays into fixing my appliances. I'm not sure why there seems to be little middle ground.
In this case, I think I agree with Gdetrailer. The door switch is very much a safety part on the microwave, and a failed substitution could be quite dangerous (or could cause other problems in the oven). While there are some repairs to microwaves that can be cost-effective, they're rather limited for cheap units and certainly it's not worth risking one's health/safety/eyesight by kludging something together. (The eyes are particularly susceptible to microwave radiation damage.)
Incidentally, microwaves are among the most dangerous of home appliances to repair due to the magnetron power supply, which is capable of providing high voltage (kilovolts) at a fairly substantial current (a significant fraction of an amp).