You will probably want a server-side application to do this (you can create a server-side application in many languages: PHP, Ruby, Python, Haskell, Java, etc.). This will allow you to schedule the tasks (for example using cron in Linux), store given card numbers and pins, store the balance or process the balance (send via email to the given user). If this is a personal project, only you will be using this (you don’t want to serve numerous users) then it might even make sense to simply write a bash script to do this.
Before jumping into this project please make sure that there is a programmatic way to retrieve the balance of the gift card. Usually, in order to get this kind of information, the provider of the cards must expose public API (application programming interface) that will allow you to simply query the provided service to check the balance.
If the given provider does not expose an API then it might be problematic to check the balance from within your application. Browser automation / scripted headless browsers usually fail to perform this kind of actions because of all sorts of CAPTCHA systems.
yeah it would be just for my own personal use. it would be wal mart gift cards and im pretty sure their API is accessible
In that case, I would probably tackle this problem as follow:
- create a JSON, YAML or CSV file that will include all the credit numbers and pins;
- sum all balances, append the sum to the end of the output file (you can also add a timestamp);
- add a cron job that will execute the created script every 12 hours.