If you already have heroku account login to account settings.
Unfortunatly you need to verify you account with credicard (no charges). I just a verification.
Once the account verified, navigate to app settings which you have example.herokuapp.com
Click on add domain and enter the following items one by one
*.example.com
http://example.com
www.example.com