def is_reversal_request(self):
     ok = BaseTransaction.is_reversal_request(self)
     if not ok:
         return
     jenis_pajak = self.jenis_pajak()
     if jenis_pajak:
         return '{j}_reversal_request_handler'.format(j=jenis_pajak)
예제 #2
0
 def is_reversal_request(self):
     if not BaseTransaction.is_reversal_request(self):
         return
     code = self.get_transaction_code()
     methods = self.get_reversal_methods()
     if code in methods: 
         return methods[code]
예제 #3
0
 def is_reversal_request(self):
     if not BaseTransaction.is_reversal_request(self):
         return
     code = self.get_transaction_code()
     methods = self.get_reversal_methods()
     if code in methods: 
         return methods[code]
예제 #4
0
 def is_reversal_request(self):
     return BaseTransaction.is_reversal_request(self) and \
             self.get_transaction_code() == PAYMENT_CODE and \
             'reversal_request_handler'
예제 #5
0
 def set_transaction_response(self):
     BaseTransaction.set_transaction_response(self)
     self.copy([49, 58, 59, 60, 62, 63, 102, 107])
     self.setBit(47, '')
     self.setBit(48, '')
     self.setBit(61, '')
예제 #6
0
 def __init__(self, *args, **kwargs):
     BaseTransaction.__init__(self, *args, **kwargs)
     self.invoice_profile = FixLength(INVOICE_PROFILE)
     self.invoice_profile2 = FixLength(INVOICE_PROFILE2)
예제 #7
0
 def set_transaction_response(self):
     BaseTransaction.set_transaction_response(self)
     self.copy([47, 49, 59, 60, 61, 63, 102, 107])
 def is_reversal_request(self):
     if not BaseTransaction.is_reversal_request(self):
         return
     if self.get_transaction_code() == PAYMENT_CODE:
         return 'reversal_request_handler'
예제 #9
0
 def __init__(self, *args, **kwargs):
     self.invoice_id = FixLength(INVOICE_ID)
     self.invoice_profile = FixLength(INVOICE_PROFILE)
     BaseTransaction.__init__(self, *args, **kwargs)
     self.invoice_id_raw = None
예제 #10
0
 def is_reversal_request(self):
     return BaseTransaction.is_reversal_request(self) and \
             self.get_transaction_code() == PAYMENT_CODE and \
             'reversal_request_handler'
예제 #11
0
 def set_transaction_response(self):
     BaseTransaction.set_transaction_response(self)
     self.copy([49, 58, 59, 60, 62, 63, 102, 107])
     self.setBit(47, '')
     self.setBit(48, '')
     self.setBit(61, '')
예제 #12
0
 def __init__(self, *args, **kwargs):
     self.invoice_id = FixLength(INVOICE_ID)
     self.invoice_profile = FixLength(INVOICE_PROFILE)
     BaseTransaction.__init__(self, *args, **kwargs)
     self.invoice_id_raw = None
예제 #13
0
 def set_transaction_response(self):
     BaseTransaction.set_transaction_response(self)
     self.copy([
         2, 3, 7, 11, 12, 13, 15, 18, 22, 32, 33, 35, 37, 41, 43, 49, 61, 62
     ])
예제 #14
0
 def __init__(self, *args, **kwargs):
     BaseTransaction.__init__(self, *args, **kwargs)
     self.invoice_profile = FixLength(INVOICE_PROFILE)
 def set_transaction_response(self):
     BaseTransaction.set_transaction_response(self)
     self.copy([47, 49, 59, 60, 61, 63, 102, 107])
예제 #16
0
 def set_transaction_response(self):
     BaseTransaction.set_transaction_response(self)
     self.copy(
         [2, 3, 7, 11, 12, 13, 15, 18, 22, 32, 33, 35, 37, 41, 43, 49, 61,
          62])
예제 #17
0
 def is_reversal_request(self):
     if not BaseTransaction.is_reversal_request(self):
         return
     if self.get_transaction_code() == PAYMENT_CODE:
         return 'reversal_request_handler'