def __init__(self, settings): super(PaymentProcessor, self).__init__('trustcommerce', settings) self.demo = 'y' self.AVS = 'n' self.custid = settings.LOGIN.value self.password = settings.PASSWORD.value if settings.LIVE.value: self.demo = 'n' if settings.AVS.value: self.AVS = 'y' self.auth = settings.AUTH_TYPE.value self.tclink_version = tclink.getVersion()
def __init__(self, settings): self.demo = 'y' self.AVS = 'n' self.settings = settings self.custid = settings.LOGIN.value self.password = settings.PASSWORD.value if settings.LIVE.value: self.demo = 'n' if settings.AVS.value: self.AVS = 'y' self.auth = settings.AUTH_TYPE.value self.tclink_version = tclink.getVersion()
def __init__(self, card=None, order=None, contact=None): self.demo = 'n' self.avs = settings.TC_AVS self.custid = settings.TC_LOGIN self.password = settings.TC_PASSWORD if not settings.TC_LIVE: self.demo = 'y' self.cycle = settings.TC_CYCLE self.auth = settings.TC_AUTH_TYPE self.order = order self.contact = contact self.card = card self.status = None self.success = None self.msg = None self.operator = settings.TC_OPERATOR self.tclink_version = tclink.getVersion() self.response = self.capture_payment()