If the product does not require recurring purchase, God only helps.
Conventional traditional business's account for such write-offs in their pricing and its a huge portion especially for those business's which operate on word of mouth & trust. The recovering strategy is to put social pressure from peer businessmen which works due to closely knit circle. This also is kind of shaming but within the circle. This discourages the defaulter lest everyone considers him going bankrupt and stops doing transactions with him.
Now with there not being such a business community in the new world of faceless transactions, not having their own unwritten protocol and as well the owners being guarded by a huge set of gatekeepers, the system lacks an element of fear to keep immoral behaviour in check.
It seems shaming on twitter has been attempted as a last resort. It's a judgement that the creditor has to take for it can spoil its own image as well. Such rules usually take time to evolve but only after someone takes the first step of challenging the convention which has been taken as per this case. It would bring the defaulter to the negotiating table and as well call for more parties to get involved to resolve the crisis.
Though a stringent bankruptcy law is coming which can be triggered. As per the draft code it could be triggered just for a lowly amount of 2Lakhs, dont know of the final act.