Changeset 5039 for WAeUP_SRP


Ignore:
Timestamp:
23 Feb 2010, 17:57:55 (15 years ago)
Author:
Henrik Bettermann
Message:

add payment remove method

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/WAeUPImport.py

    r5020 r5039  
    15141514   
    15151515   
     1516   
     1517    def remove(self,mapping):
     1518        order_id = mapping.get('order_id')
     1519        msg = ''
     1520        while True:
     1521            if self.payments_catalog.getRecordByKey(order_id) is None:
     1522                msg =  "no payment record with order_id %(order_id)s" % vars()
     1523                break
     1524            self.payments_catalog.deleteRecord(order_id)
     1525            break
     1526        return order_id,msg,mapping       
     1527   
     1528   
    15161529###)
Note: See TracChangeset for help on using the changeset viewer.