Add a simple console. It can be launched by
Refactor on controller/paypal, extract a new method 'updatePaymentInfo'
Add a notification worker (provided by iron.io) for sending webhook calls
Refactor, extract method 'hasRequiredKeys' out from lib/paypal.js
Add iron.io settings in config/index.js
Refactor, extract method '_httpsRequest' out from lib/paypal.js
Update notification worker
- Retry if the response status code is NOT 200
- Set a random retry interval between 100 to 960 seconds
Add a new test file - test/lib/common.test.js
Refactor, change the variable names + clean up
Add worker settings for Iron.io in config
Improve method 'Common.hasRequiredKeys'
- To check if the key's value is empty
- Re-organise the config file structure, fill with some fake values for test env
Add an instance of Iron to app, for puting webhook calls into queues