Changeset 1623 for WAeUP_SRP/trunk


Ignore:
Timestamp:
22 Mar 2007, 23:11:12 (18 years ago)
Author:
Henrik Bettermann
Message:

fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_epayment/check_online_payments.py

    r1620 r1623  
    4444
    4545query1 = Eq('portal_type','Payment')
    46 query2 = ~ Eq('SearchableText',"SC Payment Successful")
     46query2 = Eq('SearchableText',"Approved Successful")             
    4747online_payments = aq_portal(query1 & query2)
    4848set_trace()
     
    5454    order_id = "%s%s" % (student_id[1:],op_brain.getId[1:])
    5555    transactions = online_transactions(student_id = student_id)
     56    payment_id = op_brain.getId
    5657    if payment_doc.resp_code == "00" and not transactions:
    57         rwrite("%s no transaction for successfull payment %s" % (student_id,payment_id))
     58        rwrite('"%s","%s","no transaction for successfull payment","","%s"' % (student_id,payment_id,payment_doc.date))
    5859        continue
    5960    for transaction in transactions:
    6061        t_order_id = transaction.order_id
    6162        if t_order_id == order_id:
    62             rwrite("%s payment %s found bankresponse: %s resp_code: %s" % (student_id,
     63            rwrite('"%s","%s","%s","%s","%s"' % (student_id,
    6364                                                                        payment_id,
    6465                                                                        transaction.response_code,
    65                                                                         payment_doc.resp_code
     66                                                                        payment_doc.resp_code,
     67                                                                        payment_doc.date
    6668                                                                        ))
    6769            continue
Note: See TracChangeset for help on using the changeset viewer.