braintree-carding-watcher v1.0.0
Braintree Watcher
A command line utility to notify you of failed braintree transactions
Configuration
All configuration is done through environment variables.
BRAINTREE_TOKEN
= basic auth for the braintree graphql api, gets passed in as the Authorization header
VALIDATE_CONFIG
= will immediately notify you to verify your account credentials are correct in twilio
ENABLE_TEXT_NOTIFICATIONS
= enable/disable text notifications
TWILIO_ACCOUNT_SID
= twilio account sid
TWILIO_AUTH_TOKEN
= twilio auth token
TWILIO_TELEPHONE_FROM
= your twilio telephone phone number, where text messages are sent from
TWILIO_TELEPHONE_TO
= where to have twilio send the text message alerts
BRAINTREE_SCAN_FREQUENCY
= optional, how frequently (in minutes) to call the braintree API to find failed transactions, default: 3
BRAINTREE_PRICE_THRESHOLD
= optional, only alert when price is below this value, helps to prevent false positives, default: 1000
USAGE
Please note, the env vars will need values for this to function properly
npm install -g braintree-carding-watcher
BRAINTREE_TOKEN= VALIDATE_CONFIG=0 ENABLE_TEXT_NOTIFICATIONS=0 TWILIO_ACCOUNT_SID= TWILIO_AUTH_TOKEN= TWILIO_TELEPHONE_FROM= TWILIO_TELEPHONE_TO= braintree-carding-watcher
4 years ago