Did you pick a cake off the shelf at the bakery?  If not, it was a custom item resulting from a collaboration between the baker and the people being married, designed to be a significant part of that event.  Did he deliver to the venue?

Your mention of divorce is irrelevant; the rest is just opinion, and also irrelevant to how the baker views his religious duty.