0% found this document useful (0 votes)
17 views13 pages

Credit Card Processing System Guide

The document describes a credit card processing system. The system allows customers to purchase items using a credit card. It maintains the credit limit and transaction balance on the card. When making a purchase, the customer selects an item, provides their card to the vendor who processes the payment. The system then prints a receipt or balance statement showing the remaining balance on the card. The system was designed, implemented and tested to manage these credit card transactions.

Uploaded by

harini t
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views13 pages

Credit Card Processing System Guide

The document describes a credit card processing system. The system allows customers to purchase items using a credit card. It maintains the credit limit and transaction balance on the card. When making a purchase, the customer selects an item, provides their card to the vendor who processes the payment. The system then prints a receipt or balance statement showing the remaining balance on the card. The system was designed, implemented and tested to manage these credit card transactions.

Uploaded by

harini t
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

CREDIT CARD PROCESSING SYSTEM

Ex: No:
Date:

AIM:
To Design, Implement and Test the Credit Card Processing System described in the
problem statement .

PROBLEM STATEMENT:

The given problem statement is about the processing of credit card. The Credit card
processing system which is use to purchase an item for any shop mall. And it is used to maintain
the limitation of credit card balance and current transaction process could be update via credit
card machine.

The customer should be select the item to be purchased from using credit card payment.
Then the vendor should give a bill for the purchased item. The customer should give his card to
swap and request a kind of transaction. After processing the transaction, the CREDIT CARD
MACHINE should give the balance print statement or it can also be as a receipt. The credit card
processing machine described sequentially through steps.

 Customer should select the item form the shop.


 Vendors make the bill for the selected item.
 Customer gives the credit card to vendor for swapping the card.
 The Required amount transaction is done by the card reader.
 Vendor will issue the balance statement to the respected customer.
 Customer put the signature in the receipt and return to the vendor.
USECASE DIAGRAM:

CLASS DIAGRAM:
SEQUENCE DIAGRAM:
ACTIVITY DIAGRAM:
STATE CHART DIAGRAM:

COMPONENT DIAGRAM:
DEPLOYMENT DIAGRAM:

IMPLEMENTATION & TESTING


[Link]
package credit_card;
/*** * @author kavin */

public class Banker {


int bid;
String b_name;
String b_branch;
int limit;
int credit(int sal)
{
int li=(sal*30)/100;
limit=li;
return limit;
}
int verify(int pur)
{
if(limit>pur)
{
limit=limit-pur;
return pur;
}
else
return -1;

}
}

[Link]:
package credit_card;

/**
*
* @author kavin
*/
public class Retailer extends Banker {
int balence;
int go;
void validate(int pur,int l)
{
limit=l;go=l;
if(verify(pur)!=-1)
{

[Link]("Transaction Successfull");
[Link]("Updated Balance:"+limit);
balence=limit;
}
else
{
[Link]("Insufficient Balance");
}
}
int update()
{
return balence;
}

Credit_Card.java
package credit_card;
import [Link];
/** * * @author kavin */
public class Credit_Card extends Banker{

public static String name[]=new String[5];public static int sal[]=new int[5];public static String
loc[]=new String[5];public static int limt[]=new int[5];

public static void menu()


{
[Link]("Choose the below options:");
[Link]("[Link]");
[Link]("[Link]");
[Link]("[Link]");
}
public static void main(String[] args) {

[Link](“******************Credit Card Processing


System******************”);
Scanner s=new Scanner([Link]);
int a=1;
int card[]=new int[5] ;int i=0;
card[0]=4490; card[1]=7645; card[2]=7455; card[3]=7664;card[4]=7766;
while(a==1)
{
menu();
int ch=[Link]();
switch(ch)
{
case 1:
{

[Link]("Enter Name:");
name[i]=[Link]();
[Link]("Enter Location:");
loc[i]=[Link]();
[Link]("Enter the Salary:");
sal[i]=[Link]();
Banker ak=new Banker();
[Link]("Your Credit card no.:"+card[i]);
limt[i]=[Link](sal[i]);
[Link]("The Limit per Month :Rs."+ limt[i] +" (30% of Salary)");
i++;
break;
}
case 2:
{
[Link]("Enter Total purchase value:");
int amt=[Link]();
[Link]("Enter the card no.:");
int ca=[Link]();int g=0;int q=0;
for(q=0;q<5;q++)
{
if(ca==card[q])
{
g=1;
break;
}
}
if(g==1 )
{
if(amt<limt[q])
{
Retailer ak= new Retailer();
[Link](amt,limt[q]);
limt[q]=[Link]();
}
else
[Link]("Insufficint credit");
}
else
{
[Link]("Invaild Card Number...");
}
break;
}
case 3:
{
a=44;
[Link]("ThankYou...");
break;
}
default:
[Link]("Invalid [Link] Again...");

}
}

Output:

******************Credit Card Processing System******************


Choose the below options:
[Link]
[Link]
[Link]
1
Enter Name:
Ram
Enter Location:
Egmore
Enter the Salary:
25000
Your Credit card no.:4490
The Limit per Month :Rs.7500 (30% of Salary)
Choose the below options:
[Link]
[Link]
[Link]
1
Enter Name:
Gokul
Enter Location:
Chennai
Enter the Salary:
40000
Your Credit card no.:7645
The Limit per Month :Rs.12000 (30% of Salary)
Choose the below options:
[Link]
[Link]
[Link]
2
Enter Total purchase value:
2390
Enter the card no.:
4490
Transaction Successfull
Updated Balance:5110
Choose the below options:
[Link]
[Link]
[Link]
2
Enter Total purchase value:
4583
Enter the card no.:
7645
Transaction Successfull
Updated Balance:7417
Choose the below options:
[Link]
[Link]
[Link]
3
ThankYou...

TEST REPORT 1

Product : Credit Card Processing System


Use Case :credit card creating
Test Test Case / Expected Actual Result Pass/Fail
Case Action To Result
ID Perform
1. 1After Entering the Displays the credit The card no. and credit limit is Pass
Name, limit for customer stored.
Location,Salary. per month

TEST REPORT 2

Product : Credit Card Processing System


Use Case :credit card swiping

Test Test Case / Action Expected Result Actual Result Pass/Fail


Case To Perform
ID
1. Swiping card at store Validates if the credit The Purchase is Pass
after entering the limit is not exceeded. made Successful.
purchase
2. After purchasing the The credit card The balance of the Pass
items balance is printed. Credit Card is
updated further
Transaction

Common questions

Powered by AI

The test report validates the system's functionalities by specifying scenarios like creating a credit card and making purchases. Each test case is designed to check that particular functionalities such as entering user details and ensuring purchases do not exceed credit limits work correctly. The "Pass" status in the report confirms that the observed outcomes matched the expected results, thereby validating the system's reliability .

Allowing multiple actions like 'create' or 'purchase' directly from the main menu enhances user workflow efficiency by reducing the number of steps to perform primary tasks, thereby speeding up interactions. However, this approach might require users to remember options and implications, potentially confusing new users who may require contextual help or guided steps .

Calculating the credit limit as a fixed percentage of salary ensures that the credit offered is proportional to the user's financial capacity, reducing risk. However, this approach might not account for other financial obligations or income fluctuations a customer may experience, potentially limiting their purchasing power unnecessarily or causing credit overextension if other debts aren't considered .

The verification process in the credit card processing system ensures a successful transaction by comparing the purchase amount with the available credit limit. If the purchase amount does not exceed the credit limit, the transaction is approved, the purchase is made, and the credit limit is updated accordingly. If it does exceed, the transaction is declined. This is managed through the `verify` method of the `Banker` class which deducts the purchase amount from the limit if it is sufficient .

The `validate` method in the `Retailer` class checks if the purchase amount is within the current credit limit, only proceeding with the transaction if this condition is met. This method ensures that transactions are only approved if financially feasible for the customer, updating the balance accordingly. This function contributes to the stability and integrity of the system by preventing unauthorized spending .

The system's user interaction design promotes simplicity and directness, with a straightforward menu offering options for creating a credit card, making purchases, or exiting. This fulfills typical UX principles like clarity, efficiency, and minimizing user's cognitive load. However, the system could further enhance user experience by providing more personalized feedback or help options within the menu framework .

The sequence of interactions reflects a standard transaction processing design pattern, consisting of steps like item selection by the customer, billing by the vendor, card swiping, transaction validation and execution, followed by issuing a balance statement. This pattern ensures a logical, sequential handling of processes involving multiple actors and resources, allowing for consistent transaction verification and reporting .

Improvements could include enhancing card number verification mechanisms within the deployment to include checksums or secure algorithms to prevent invalid card processing. Introducing multi-factor authentication would fortify security and user validation. Automating balance updates and providing mobile-friendly interfaces could also enhance the system's accessibility and reliability .

The `Banker` class plays a critical role in determining a user's credit limit by calculating it as 30% of the user's provided salary. This is done using the `credit` method, which returns the calculated limit. Additionally, the `verify` method in the `Banker` class checks if a purchase can be approved by comparing it against the user's available credit limit. If the purchase is within the limit, the limit is reduced by the purchase amount; otherwise, it returns -1 indicating insufficient credit .

Inadequate credit card number validation can lead to unauthorized transactions, fraud, and financial losses for both vendors and customers. It can also disrupt user trust in the system's security, possibly resulting in decreased usage. Proper validation ensures that only verified cards are processed, protecting the integrity of transactions and user data .

You might also like