How do you manage impulsive spending/debt?

I’ve been trying to pay my credit card off for a while now, but I had such a hard time forgetting that I need to pay it off, and buying something for that quick dopamine fix. Any tips or even stories of how you were able to manage your finances are appreciated ❤️