Changeset 1623
- Timestamp:
- 22 Mar 2007, 23:11:12 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_epayment/check_online_payments.py
r1620 r1623 44 44 45 45 query1 = Eq('portal_type','Payment') 46 query2 = ~ Eq('SearchableText',"SC Payment Successful")46 query2 = Eq('SearchableText',"Approved Successful") 47 47 online_payments = aq_portal(query1 & query2) 48 48 set_trace() … … 54 54 order_id = "%s%s" % (student_id[1:],op_brain.getId[1:]) 55 55 transactions = online_transactions(student_id = student_id) 56 payment_id = op_brain.getId 56 57 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)) 58 59 continue 59 60 for transaction in transactions: 60 61 t_order_id = transaction.order_id 61 62 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, 63 64 payment_id, 64 65 transaction.response_code, 65 payment_doc.resp_code 66 payment_doc.resp_code, 67 payment_doc.date 66 68 )) 67 69 continue
Note: See TracChangeset for help on using the changeset viewer.