Ignore:
Timestamp:
6 Dec 2012, 08:39:26 (12 years ago)
Author:
Henrik Bettermann
Message:

Add function to write csv 'messages' into payments.log. The helper function is tested in custom packages.

Add payment attributes which store split amount values.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/interswitch/helpers.py

    r9747 r9774  
    106106    notify(grok.ObjectModifiedEvent(payment))
    107107    return True, msg, log
     108
     109def write_payments_log(id, payment):
     110    payment.logger.info(
     111        '%s,%s,%s,%s,%s,%s,%s,%s,,,' % (
     112        id, payment.p_id, payment.p_category,
     113        payment.amount_auth, payment.r_code,
     114        payment.provider_amt, payment.gateway_amt,
     115        payment.thirdparty_amt))
Note: See TracChangeset for help on using the changeset viewer.