- Notifications
You must be signed in to change notification settings - Fork0
FahdSeddik/ESND-Payment-Application
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This is a Payment Application Simulation project for the EgFWD Embedded Systems Professional NanoDegree Scholarship. This project was written in C. It includes a Luhn card PAN generation and validation.
These are some of the functions I thought I should highlight:
appStart()
: this would be called inMain.c
to start the applicationgetTransactionDate()
: asks for a date in the formDD/MM/YYYY
or can retrieveSystem Date
automaticallygetCardPAN()
: this functions asks either to generate a Luhn valid card PAN or enter manually- Uses
GenerateLuhn()
which essentially applies the Luhn algorithm to generate the card PAN
- Uses
readAccountDB()
: this load the accounts database from the database file (readdatabase section)saveTransaction()
: saves APPROVED transactions with all details into the transactions database (readdatabase section)
- You would find demonstrated test cases in the "Submission Files/User Stories" Folder.
- This demonstrates how someone would use the Simulator.
- The test cases describe different scenarios that would happen:
EXCEED_MAX_AMOUNT
: means that the user tried to make a transaction with more than specified max amount for cardDECLINED_STOLEN_CARD
&INVALID_ACCOUNT
: the card number is not present in the account database for the bankDECLINED_INSUFFECIENT_FUND
: transaction amount is greater than account balanceAPPROVED
: the transaction was successful and saved to transactions database
About
Embedded Systems Professional Nanodegree Payment Application Project
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.