Пример #1
0
    def add_gateway(self, gateway_type, credentials=None):
        credentials = credentials or {}

        body = self.add_gateway_body(gateway_type, credentials)
        xml_doc = ssl_requester.ssl_post(urls.add_gateway_url(), body, self.headers)

        return Gateway(xml_doc)
Пример #2
0
    def add_gateway(self, gateway_type, credentials=None):
        credentials = credentials or {}

        body = self.add_gateway_body(gateway_type, credentials)
        xml_doc = ssl_requester.ssl_post(urls.add_gateway_url(), body,
                                         self.headers)

        return Gateway(xml_doc)
Пример #3
0
 def api_post(self, url, body, talking_to_gateway=True):
     xml_doc = ssl_requester.ssl_post(url, body, self.headers,
                                      talking_to_gateway)
     return Transaction.from_xml(xml_doc)
Пример #4
0
 def api_post(self, url, body, talking_to_gateway=True):
     xml_doc = ssl_requester.ssl_post(url, body, self.headers, talking_to_gateway)
     return Transaction.from_xml(xml_doc)