scratch card

Last post 03-25-2009 5:59 PM by scott@elbandit.co.uk. 2 replies.

Sort Posts:

  • scratch card

    03-18-2009, 8:50 AM
    • Member
      20 point Member
    • aduhperf
    • Member since 03-18-2009, 12:21 PM
    • Posts 52

    i am developing a web application using asp.net i want users to buy scratch card and use it to make payment for thier school fees.

    pls i need you guys to assits on

    1  how i should go about generating the scratch card pin and serial nu mber, cos they will have to enter both the serial and pin during pyaments

    2 how i should go about authenticating the pin and scratch card number in the most secured manner

  • Re: scratch card

    03-25-2009, 3:01 AM

    Hi,

    From your description, it seems that you want to generate the scratch card number and pin number in your system, right?

    If so, I suggest that you can create a data table in your database with two columns, one is for scratch card number and another is for the pin number. You can generate the scratch card number and pin number by producing a new guid, and insert them into data table. So once the user enter the scratch card number and pin number, all those information will be authenticated by query for the corresponding row in that data table.

    Thanks.

    Michael Jin.
    Microsoft Online Community Support

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
  • Re: scratch card

    03-25-2009, 5:59 PM

    aduhperf:
    2 how i should go about authenticating the pin and scratch card number in the most secured manner

    When you generate the scratch card pin and number and after you give them to a user you can has them before storing them in the database, this will mean that people looking at your database will not be able to work out the real card number or pin. When a user enters the scratch card number and pin you can has these two and then compare them agaisn't the hased values in the database when looking for a match. Let me know if that works for you.

    Cheers
    Scott

    My Books:

    Professional Enterprise .NET
    Check out my book on learning all about enterprise programming, including TDD, Mocking, DDD, Dependecy Injection, Inversion of Control, Dependency Inversion, NHibernate, MVC & MVP. Check out the code on the projects codeplex site.

    NHibernate with ASP.net Problem-Design-Solution
    Learn all about NHibernate with ASP.net.
Page 1 of 1 (3 items)