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)
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)