def setUp(self):
     if e_settings.ms_provider == 'payflowpro':
         self.t = txn_data('Visa', '4111111111111111', '1010', '100', str(time.time()), 'Gift Card', 'Recipient', '170 Southport Dr. Suite 400', 'Morrisville', 'NC',
             '27650', 'US', '204.16.138.148', '001')
     else:
         # 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')
 def setUp(self):
     if e_settings.ms_provider == 'payflowpro':
         self.t = txn_data('Visa', '4111111111111111', '1010', '100',
                           str(time.time()), 'Gift Card', 'Recipient',
                           '170 Southport Dr. Suite 400', 'Morrisville',
                           'NC', '27650', 'US', '204.16.138.148', '001')
     else:
         # 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')
 def setUp(self):
     self.t = txn_data('Visa', '4111111111111111', '1010', '100', str(time.time()), 'Gift Card', 'Recipient', '170 Southport Dr. Suite 400', 'Morrisville', 'NC',
         '27650', 'US', '204.16.138.148', '001')
     if payflowpro_settings.PWD:
         self.is_configured = True
     else:
         self.is_configured = False
 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 setUp(self):
     self.t = txn_data('Visa', '4111111111111111', '1010', '100',
                       str(time.time()), 'Gift Card', 'Recipient',
                       '170 Southport Dr. Suite 400', 'Morrisville', 'NC',
                       '27650', 'US', '204.16.138.148', '001')
     if payflowpro_settings.PWD:
         self.is_configured = True
     else:
         self.is_configured = False
 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()