This way of pronouncing the ‘d’ has crept into our speech over time. It’s slightly more informal but is used by many especially among friends and in informal situations.
This way of pronouncing the ‘d’ is only in British English. In American English, it is pronounced as a ‘d’.