problem on payment for online shopping...

Discussion in 'PHP' started by learnerabn, Apr 2, 2010.

  1. #1
    hello every body,
    i'm designing a online shopping website.
    In that site a customer payment option redirect them to ebs website(payment authority).
    The problem here is after returning from the ebs website some times the session got expired and the payment status remains not received but the amout is got from customer account so for each and every order we have to change the payment status in the database(but it is not possible since we dont know who all r ordering and who all r paid the cost).
    can anybody help me to figure out the problem?
     
    learnerabn, Apr 2, 2010 IP
  2. l3vi

    l3vi Peon

    Messages:
    375
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Sounds like their browser is dropping the session cookie, or you are overwriting it when they return. I would recommend doing a "remember me" type of system. Simply store a ref for the user to kick-start the session gain when they return if they dropped the session. For example you could store a ref ID in a table that ref back to their account and expires at a set time, or you could store their user ID, and password hashed and compare when they return.
     
    l3vi, Apr 3, 2010 IP
  3. Brandon.Add.On

    Brandon.Add.On Peon

    Messages:
    178
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Try increasing the life of the cookie ie making it expire at a later time.
     
    Brandon.Add.On, Apr 3, 2010 IP