wallet API allow users to create account, fund their wallet from their Debit cards and send of money as a gift to another user. It is built on top of NodeJS and Express. It is higly flexible because it provides users with opportunity to:
- Sign up
- Sign in
- Fund wallet using PAYSTACK API
- Send money from wallet
To obtain a copy of this app download or clone the repository at this url
Postman collection documentation link url
You must have
- NodeJs Installed
- A browser Installed
- A REST API client(like POSTMAN) Installed
- An Internet connection to download the dependencies.
- (If the repository wasn't cloned)Extract the contents of the downloaded zip file into any suitable location on the computer
- In the command prompt, cd to the root of the directory you extracted the app into
- Run 'npm install' to install all dependencies
- Run 'npm run dev' to start the application
- In a browser address bar navigate to 'https://wallet--api.herokuapp.com'
- Open any restful client application initially installed
- Select the appropriate http method. Either GET, POST,
- Use the POST method
- Use this url https://wallet--api.herokuapp.com/api/v1/signin
-
Use the POST method
-
Use this url https://wallet--api.herokuapp.com/api/v1/signup
-
As user get signup automatically the balance is Zero
-
Use the GET method
-
Use this url https://wallet--api.herokuapp.com/api/v1/users
-
To get all users with their corresponding accounts (token is needed)
-
Use the POST method (token is needed)
-
Use this url https://wallet--api.herokuapp.com/api/v1/paystack/fund
-
Paystack url is generated and used on the browser
-
Use the GET method
-
Use this url https://wallet--api.herokuapp.com/api/v1/paystack/callback
-
A verify payment to update the user balance is called automatically
-
Use the GET method
-
Use this url https://wallet--api.herokuapp.com/api/v1/receipt/:id
-
To get user initial transaction receipt (token is needed)
-
Use the POST method
-
Use this url https://wallet--api.herokuapp.com/api/v1/transfer
-
Use the GET method
-
Use this url https://wallet--api.herokuapp.com/api/v1/gift-history
-
To get user gift history (token is needed)
- Use the GET method
- Use this url https://wallet--api.herokuapp.com/api/v1/account (token is needed)
-
Use the POST method
-
Use this url https://wallet--api.herokuapp.com/api/v1/send-to-account
-
User can send money from his wallet to his account number specifying account number, bank code and name (token is needed)
-
Use the GET method
-
Use this url https://wallet--api.herokuapp.com/api/v1/withdraw-history
-
To get user withdraw history (token is needed)
- NodeJs
- Express
- MySQL (database)
- Sequelize (ORM)
- AbonyiXavier