Ignore:
Timestamp:
1 Aug 2017, 11:52:25 (7 years ago)
Author:
Henrik Bettermann
Message:

rstrip RRR.

File:
1 edited

Legend:

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

    r14737 r14738  
    6363
    6464def get_payment_status_via_rrr(merchantId, api_key, RRR, host, https):
     65    RRR = RRR.rstrip()
    6566    hashargs =  RRR + api_key + merchantId
    6667    hashvalue = hashlib.sha512(hashargs).hexdigest()
     
    7677    resp = h.getresponse()
    7778    if resp.status!=200:
    78         return {'error': 'Connection error (%s, %s)' % (response.status, response.reason)}
     79        return {'error': 'Connection error (%s, %s)' % (resp.status, resp.reason)}
    7980    jsonout = resp.read()
    8081    try:
Note: See TracChangeset for help on using the changeset viewer.