PaymentGatewayDevelopmentDoc PDF
PaymentGatewayDevelopmentDoc PDF
ABSTRACT
In this paper a brief overview of electronic payment gateway is provided. This paper addresses the
requirements for an electronic payment gateway from both the customers' and the merchants' point of view.
Most of the population doesn’t trust on the local existing online payment gateway because it is not very
secure. Mostly people want to adopt electronic payment system as it has lots of advantages. They need
such a gateway that fulfill their all requirements and provide security, privacy etc. On the basis of these
requirements and the local infrastructure, we propose an electronic payment gateway for local environment.
84
In Nepal there are around 3three banks that are
offering Internet Banking Services and majority
of middle class are out of such services.
4. PRELIMINARIES
Online customer:
A customer is an entity who will buy products by
making payments in timely manner.
Merchants:
A merchant is a seller who will receive payments
made by customer.
Banks:
Two banks are involved.
1. Client bank
2. Merchant bank
85
Confirmation: When transaction took place
customer must have notification and merchant
must have confirmation
1.3
Send Data
2.1
Server
Decrypt Data
Customer
Order
Data Client
Merchant
Bank
6.0
Client Mail
5.0
Mail
4.3
Split Data
7. TECHNIQUES AND ALGORITHM:
Save Items
86
Algorithm of Client: Server receives payment order sent by clients,
decrypt and encrypt that message and send it to
Client: Client bank. Client bank will send a payment
Start and connect deduction message to server and server will send
Start Customer browse merchant website it to Merchant Bank. Merchant bank will send an
If select Category then acknowledgment message to Server and server
Go to Item list of selected category will send it to merchant.
If Select Item
Then Show detail of selected item Algorithm of Client Bank
If Want to buy selected item
Then select Add to order form Client Bank:
Else Go back to category
If select add to order form Start connection
Do AddToOrder SubCategoryId If connected
go to Order form and fill required fields like Receive payment message including client’s
credit card No., expiry Date, and telephone no, info
Address If client’s info is present in database of bank
Select Submit Send message to server This customer is
Else Continue shopping Authorized
Else Cancel Else Send message This customer is not
If select submit Display Authorization Authorized
If Credit card no.Text is equal to Credit card If customer is Authorized
no. {Save payment request into database
display This Customer is Authorized From Deduct amount from Client bank
Bank. Send that amount to Payment Gateway}
Figure no. 4: Algorithm of client
Client can browse merchant’s website. After
selection of items he can send payment order to Figure no. 6: Algorithm of Client bank
e-payment server after filling required fields e.g
Credit card no., expiry date etc Client bank receives payment message and
verify client. Deduct amount from client bank
Algorithm of Payment gateway and send that amount to payment gateway.
Payment gateway:
Algorithm of Merchant Bank
Start connection Merchant Bank
If connected
Receive payment message Start connection
Else display Not Connected If connected
If receive payment message Receive payment message including
{Decrypt message merchant account no.
Split and send it to different textboxes If merchant’s account is present in database
Add to database of bank
Sent it to Client bank} {Receive payment
Else Cancel Add payment to Merchant’s account}
If client bank is sending message Else Send message Invalid account no.
{Receive it
Send it to merchant bank}
Figure no. 7: Algorithm of Merchant bank
Else wait
If merchant bank is sending message
Merchant bank verifies merchant, receives
{Receive it payment message from Client bank through
Send it to Merchant} payment server and add payment to Merchant’s
else wait account.
87
Algorithm of Merchant 100
80 User Friendly
Merchant Cost
60
Start connection Security
Performance
If connected 40
Reliability
{Make and update website 20 Speed
88
but it is very slow. So, Triple DES is considered [3] Rosenberg, J., Schulzrinne, H., Camarillo,
to be more secure and fast. G., Johnston, A., Peterson, J., Sparks, R.,
Experiments were carried out to compare DES, Handley, M., Schooler, E. 2002. SIP:
TDES and AES encryption standards. The Session Initiation Protocol. RFC 3261
results are as follows: Time was compared for (June).
encryption. If there is large number of
transactions, time assumes importance. [4] Aboba, B., Arkko, J., Harrington, D. 2000.
Introduction to accounting management.
RFC 2975 (October).
500
400
Time in Milisec
89
[14] Garcia-Martin, M., Belinchon, M., Pallares-
Lopez, M., Canales-Valenzuela, C., Tammi,
K. 2006. Diameter Session Initiation
Protocol (SIP) Application. RFC 4740
(November)
90