• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

online reservation

 
Ranch Hand
Posts: 83
MS IE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello everyone.. ... Could someone clear my view on how onliine ticket bookings ( or reservations ) are done ??? I am dealing with a project for my end semesters where I have to develop an Online Airline Ticket Booking website.. I am using Java (Servlets,JSP) .. So my question in simple words is.. how does the seat for a certain customer gets reserved when he/she books ??? what are the steps ?? what technology must be brought in here to check(verify) the Credit card of the customer and how does the customer gets the ticket??? Hope I am able to clearly depict the situation... Please help..
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Um, a semester project? How much work do you think Expedia, Travelocity et al. have spent on their sites? Maybe you can narrow down the scope to something manageable?
 
J Das
Ranch Hand
Posts: 83
MS IE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ulf Dittmer wrote:Um, a semester project? How much work do you think Expedia, Travelocity et al. have spent on their sites? Maybe you can narrow down the scope to something manageable?



Yes indeed .. but the thing is like ,our institution has distributed the projects to us and this is what i got as my part... Now i need some help.. If you could help me i would be in definite grace...
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, what do you have so far? Where are you stuck making progress? If you haven't started, what ideas have you had?
 
J Das
Ranch Hand
Posts: 83
MS IE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ulf Dittmer wrote:Well, what do you have so far? Where are you stuck making progress? If you haven't started, what ideas have you had?



Well I haven't started this yet.... but I am not able to figure out how the following situation which will eventually show up when the client books a ticket....

the client fills up the form which opts for client's information ... Now when the client gives his Credit Card number for the payment purpose.. how does the verification of the Credit Card takes place ???

My question is that , when the client submits his Credit Card Number to my website (to buy a ticket)
how do I check/verify that the given Credit card Number is a real one ??? I my opinion the Bank will get involved here because of the verification of the Credit Card.. But how do these steps take place ??? How should this feature be added to my application...??? I hope you get my point.. Please help me understand..
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In the real world you would contract the services of a "payment processor". For your project, it's probably sufficient to apply the usual checks for validity of the CC#; see org.apache.commons.validator.CreditCardValidator for an example.
 
Ranch Hand
Posts: 126
VI Editor Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Interesting discussion Das & Ulf...

@Das: At what level you want your project to be... Credit card validation or real time booking??? I see no point in the later for the sake of a college project...
 
J Das
Ranch Hand
Posts: 83
MS IE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Guru dhaasan wrote:Interesting discussion Das & Ulf...

@Das: At what level you want your project to be... Credit card validation or real time booking??? I see no point in the later for the sake of a college project...



Thanks Guru for taking a look ... Actually i have read some forums where they have mentioned that in order to pay online , one needs to have a Payment Gateway, a Merchant Bank and this and that.... But the thing is how do I check it when I am just developing in my LOCALHOST....??? I hope you understand my query... Please suggest something....

 
Guru dhaasan
Ranch Hand
Posts: 126
VI Editor Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What you heard from different sources is true.. you should involve with payment gateway and stuff and more importantly you've to PAY for that... That's why i told its pointless for a college project...

Better is that as suggested by Ulf, you can use apache commons library for validating the credit card and just a dummy payment gateway system which mimics what you see in a real world
May be like once the card is validated successfully, you can redirect to the success page saying that the transaction was successful. If the CC validation fails, just route to an error page

Hope this makes sense for your project..
 
J Das
Ranch Hand
Posts: 83
MS IE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Guru dhaasan wrote:What you heard from different sources is true.. you should involve with payment gateway and stuff and more importantly you've to PAY for that... That's why i told its pointless for a college project...

Better is that as suggested by Ulf, you can use apache commons library for validating the credit card and just a dummy payment gateway system which mimics what you see in a real world
May be like once the card is validated successfully, you can redirect to the success page saying that the transaction was successful. If the CC validation fails, just route to an error page

Hope this makes sense for your project..



Yes indeed, you are right...But how to implement those Apache Common Libraries ?? I mean to say where in the code does they actually sit ??? Could you please suggest me how to proceed when i use Servlets and JSP ...
 
Guru dhaasan
Ranch Hand
Posts: 126
VI Editor Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Get the credit card # from the user (jsp/servlet) and use the commons-validator.jar to validate the same
Google for some examples of how to use that validator class
 
J Das
Ranch Hand
Posts: 83
MS IE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Guru dhaasan wrote:Get the credit card # from the user (jsp/servlet) and use the commons-validator.jar to validate the same
Google for some examples of how to use that validator class



Ok after the User enters all necessary information along with his Credit Card No.in the form , these information will be sent to the Servlet ... Right ?? So there the proper checking goes .. Right ??? which means that These common validator classes must be written in the servlets ??? Please correct me if my viewpoint is wrong...

Kindly give me a clear idea of how this concept gets implemented in a MVC architechure ... I mean to say when the client submits his info ( along with Credit Card No.) , what are the steps involved and what things happens where ???
 
Guru dhaasan
Ranch Hand
Posts: 126
VI Editor Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
why do you need a mvc for this
 
J Das
Ranch Hand
Posts: 83
MS IE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Guru dhaasan wrote:why do you need a mvc for this



So what should we be using ?? and kindly let me know the flow of work.. what happens after submision of the Credit Card No.
 
Guru dhaasan
Ranch Hand
Posts: 126
VI Editor Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No credit card info. should be persisted.... in real life scneario, you will just forward the info. to Payment gateway... Take the CC details, validate it and route to a success/error page depending on the validation result...

keep it simple
 
J Das
Ranch Hand
Posts: 83
MS IE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Guru dhaasan wrote:No credit card info. should be persisted.... in real life scneario, you will just forward the info. to Payment gateway... Take the CC details, validate it and route to a success/error page depending on the validation result...

keep it simple



Yes , but the thing is like ... to buy a ticket one has to have a Credit Card which involves a Bank.. So how will the payment be done through localhost ???
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ulf Dittmer wrote:In the real world you would contract the services of a "payment processor".

 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Guru dhaasan wrote:why do you need a mvc for this


Why wouldn't you? MVC is the most common architecture. One should have a reason to not be using it.
 
J Das
Ranch Hand
Posts: 83
MS IE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Jeanne Boyarsky wrote:

Guru dhaasan wrote:why do you need a mvc for this


Why wouldn't you? MVC is the most common architecture. One should have a reason to not be using it.



Could you clearly describe me .. how can this be done ?? I mean after submission of the credit card number , what steps should my application follow in an MVC architecture ?? Please advice...
Also make me understand how all of this payment process goes locally ( in localhost ) where i do not have the option of communicating with a live Bank .. hope you get my question and i hope you suggest me some good tips to do this...
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

J Das wrote:Also make me understand how all of this payment process goes locally ( in localhost ) where i do not have the option of communicating with a live Bank.



This is really getting absurd. Obviously you can't communicate with a real-life entity which will say that your input is good or not, and bill someone's credit card. This is only a demo, after all. So obviously you must put something in place yourself which says whether your input is good, and doesn't bill anybody's credit card.

The easiest thing to do is to accept all inputs as good. A slightly more difficult thing would be to just check the credit card number for validity, but this has already been suggested several times. Were you seriously imagining that you would have to build an entire fake merchant bank to connect to?
 
Curse your sudden but inevitable betrayal! And this tiny ad too!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic