There's an old saying that says you get what you pay for.
1. Contact a reputable locksmith in your area that can reprogram key fobs. No guarantee it will work but that's probably your cheapest option.
2. Visit your local Nissan dealership and let the people with the knowledge and correct tools fix it for you. It may cost a lot more but it will be guaranteed to work right.