Ignore:
Timestamp:
24 Jun 2021, 07:23:03 (3 years ago)
Author:
Henrik Bettermann
Message:

Amounts are in Kobo. But it's still not clear if Amount also contains the the gateway fee.

File:
1 edited

Legend:

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

    r16488 r16515  
    240240    p_id = payment.p_id
    241241    description = payment.p_category
    242     amount = int(payment.amount_auth)
     242    amount = int(100*payment.amount_auth)  # Amount in Kobo
    243243    date_booked = payment.creation_date.strftime("%Y-%m-%d")
    244244    date_expired = "2099-12-31"
     
    335335    try:
    336336        amount = doc.getElementsByTagName('Amount')[0].firstChild.data
    337         payment.r_amount_approved = float(amount)
     337        payment.r_amount_approved = float(amount) / 100
    338338    except AttributeError:
    339339        pass
Note: See TracChangeset for help on using the changeset viewer.