how do I suspend a transaction until verification

Discussion in 'PHP' started by alimoses, Aug 26, 2010.

  1. #1
    I'm working on a banking software in php. I want the best idea on how to the following:
    when some transactions are posted by cashiers, they should not persist the database until they are approved by the Head of Operations. Can someone guide me, please.
     
    alimoses, Aug 26, 2010 IP
  2. Cyb3rgh0st_

    Cyb3rgh0st_ Greenhorn

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #2
    why not use a simple merchant ?
    instead of doing akk the verification's ect it will save you a lot of time and hassle
     
    Cyb3rgh0st_, Aug 26, 2010 IP
  3. ThePHPMaster

    ThePHPMaster Well-Known Member

    Messages:
    737
    Likes Received:
    52
    Best Answers:
    33
    Trophy Points:
    150
    #3
    You can create a separate table for transactions that need to be approved. You can also use the same table adding a field "isApproved".

    When approved by an administrator, you can transfer it to the approved table or set isApproved to 1 if you are using the field instead.
     
    ThePHPMaster, Aug 26, 2010 IP