from __future__ import unicode_literals
from communications import Communications
from response import payfacResponse


class payfacRequest(object):

    def __init__(self, config):
        self.config = config
        self.user = config.getUser()
        self.password = config.getPassword()
        self.url = config.getUrl()
        self.communications = Communications(self.user, self.password, self.url
            )

    def sendRequest(self, xml):
        responseXML = self.communications.http_post(xml)
        return payfacResponse(responseXML)

803ef7fbe79f903d1634303a843ad043b9088823
<mask token>

<mask token>


class payfacRequest(object):

    def __init__(self, config):
        self.config = config
        self.user = config.getUser()
        self.password = config.getPassword()
        self.url = config.getUrl()
        self.communications = Communications(self.user, self.password, self.url
            )
    <mask token>

<mask token>


class payfacRequest(object):

    def __init__(self, config):
        self.config = config
        self.user = config.getUser()
        self.password = config.getPassword()
        self.url = config.getUrl()
        self.communications = Communications(self.user, self.password, self.url
            )

    def sendRequest(self, xml):
        responseXML = self.communications.http_post(xml)
        return payfacResponse(responseXML)

from __future__ import unicode_literals
from communications import Communications
from response import payfacResponse


class payfacRequest(object):

    def __init__(self, config):
        self.config = config
        self.user = config.getUser()
        self.password = config.getPassword()
        self.url = config.getUrl()
        self.communications = Communications(self.user, self.password, self.url
            )

    def sendRequest(self, xml):
        responseXML = self.communications.http_post(xml)
        return payfacResponse(responseXML)
