A tool to fund WatCard in an easy way
Project description
fund-my-watcard
This tool helps you add funds to your WatCard easily. I wrote this tool because I am too lazy to do it by hand everytime.
Installation
pip3 install fund-my-watcard
Usage
teachertian@v1040-wn-rt-c-83-249 ~/PycharmProjects/fundmywatcard: watcard
usage: watcard [-h] [-c | -f FUND | -v]
Fund my WatCard: A tool to fund WatCard easily.
optional arguments:
-h, --help show this help message and exit
-c, --config generate the config file
-f FUND, --fund FUND the fund amount to the WatCard
-v, --version show the version of fund-my-watcard
One important step before funding is to fill the config file .watcard_config, which is generated and stored under the user directory. Type watcard --config
to initialize and edit the config file.
An example of .watcard_config:
{
"userName": "WatIAM username",
"password": "WatIAM username",
"ordName": "Name on the credit card",
"phoneNumber": "Phone number",
"address1": "Home address 1",
"address2": "Home address 2 (Remove all the characters if no address2)",
"ordPostalCode": "Postal code",
"ordCity": "City",
"ordEmailAddress": "Email address",
"paymentMethod": "The payment method ('CC' for 'Credit Card')",
"trnCardOwner": "Card owner",
"trnCardType": "Card type ('VI' for 'Visa', 'MC' for 'Master Card', see more card types below)",
"trnCardNumber": "Card number",
"trnExpMonth": "Expiry month",
"trnExpYear": "Expiry year",
"trnCardCvd": "Card CVD (3 digit number on the back of the card)"
}
An example of filled .watcard_config:
{
"userName": "s123zhang",
"password": "1234567",
"ordName": "San Zhang",
"phoneNumber": "123 456 7890",
"address1": "123 Queen Street West",
"address2": "",
"ordPostalCode": "A1B2C3",
"ordCity": "Waterloo",
"ordEmailAddress": "zhangsan@gmail.com",
"paymentMethod": "CC",
"trnCardOwner": "San Zhang",
"trnCardType": "MC",
"trnCardNumber": "1234567890123456",
"trnExpMonth": "01",
"trnExpYear": "25",
"trnCardCvd": "123"
}
Payment Method should be CC (Credit Card). Do not support Interac Online.
Card Type can be MC (Mastercard), VI (Visa), PV (VISA Debit), MD (Debit Mastercard) or AM (AMEX).
After filling the config file, try watcard --fund 10
to add 10 dollars to your account. At the next time, no need to edit config file (unless you want to change some information), just use watcard --fund
to fund your watcard easily, cheers!
Docker Image
We also maintain a docker image for fund-my-watcard:
https://hub.docker.com/r/faushine/fund-my-watcard
Contributing
Please install dev-requirements.txt
instead of requirements.txt
. After that, run dev-init.sh
to install the pre-commit hook to force PEP8 style checking.
Plan
Check kanban board to see our future plan.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for fund_my_watcard-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1143ff0748285ba367ec230a4d9927f7d47398f8129eca55638eaaaca1766caa |
|
MD5 | 52b64b56102faba888d9fe87401f0978 |
|
BLAKE2b-256 | 8e732b980972120e5f233542f8355a9c22eddbdd5ae94a209a6820893cb1396f |