Changeset 14756


Ignore:
Timestamp:
3 Aug 2017, 08:44:27 (7 years ago)
Author:
Henrik Bettermann
Message:

Set r_company already after retrieving RRR.

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

Legend:

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

    r14755 r14756  
    283283        if resp.get('statuscode') not in ('021', '025', '055'):
    284284            return 'RRR generation message from Remita: ' + resp.get('status')
     285        # Already now it becomes a Remita payment
     286        self.context.r_company = u'remita'
    285287        self.rrr = self.context.r_pay_reference = resp['RRR'].rstrip()
    286288        hashargs =      self.merchantId + self.rrr + self.api_key
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/remita/tests.py

    r14754 r14756  
    191191            in self.browser.contents)
    192192        self.assertEqual(self.payment.r_pay_reference, self.rrr)
     193        self.assertEqual(self.payment.r_company, 'remita')
    193194        # Means of testing end here.
    194195        return
Note: See TracChangeset for help on using the changeset viewer.