Changeset 14738


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

rstrip RRR.

Location:
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/payments/interfaces.py

    r14737 r14738  
    7979            (_('Interswitch'), 'interswitch'),
    8080            (_('eTranzact'), 'etranzact'),
    81             (_('eRemita'), 'remita'),
     81            (_('Remita'), 'remita'),
    8282            (_('Scratch Card'), 'sc'),
    8383            (_('Manifest'), 'manifest'),
  • 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.