Ignore:
Timestamp:
12 Dec 2007, 11:51:17 (17 years ago)
Author:
Henrik Bettermann
Message:

Payment.py: set payment status properly

upgradePayments.py: commit transactions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/Payment.py

    r2917 r2925  
    101101            #    d['order_id'] = "%s%s" % (student_record.id[1:],self.aq_parent.getId()[1:])
    102102
     103            p_type = "online"
    103104            if doc.resp_code in ("00","IP","AP"):
    104                 p_type = "online"
    105105                p_status = "paid"
    106106                break
    107             p_type = "online"
    108             p_status = "started"
     107            elif doc.resp_code == '':
     108                p_status = "started"
     109            else:
     110                p_status = "failed"
    109111            # don't set order_id it is already correct
    110112
Note: See TracChangeset for help on using the changeset viewer.