def setUp(self):
     # This data is for an American Express gift card that no longer has any value. As such, the name and address shouldn't have any bearing on the
     # approval decision.
     self.t = txn_data('Amex', '379014099768149', '1010', '100',
                       str(time.time()), 'Gift Card', 'Recipient',
                       '170 Southport Dr. Suite 400', 'Morrisville', 'NC',
                       '27650', 'US', '204.16.138.148', '4434')
     self.p = direct_payment(self.t.get_dict()).charge()
 def test_refund(self):
     self.t.cvv2 = None
     self.t.transaction_id = self.p['transaction_id']
     r = direct_payment(self.t.get_dict()).credit()
     self.assertEquals('result_message' in r, True)
     self.assertEquals('transaction_id' in r, True)
 def test_refund(self):
     self.t.cvv2 = None
     self.t.transaction_id = self.p['transaction_id']
     r = direct_payment(self.t.get_dict()).credit()
     self.assertEquals('result_message' in r, True)
     self.assertEquals('transaction_id' in r, True)
 def setUp(self):
     # This data is for an American Express gift card that no longer has any value. As such, the name and address shouldn't have any bearing on the
     # approval decision.
     self.t = txn_data('Amex', '379014099768149', '1010', '100', str(time.time()), 'Gift Card', 'Recipient', '170 Southport Dr. Suite 400',
         'Morrisville', 'NC', '27650', 'US', '204.16.138.148', '4434')
     self.p = direct_payment(self.t.get_dict()).charge()