def process_direct_payment(self, direct_payment_details=None, **kwargs):
        if direct_payment_details:
            # Create XML to send
            payment_xml_root = Element("ewaygateway")
            for each_field in direct_payment_details:
                field = Element(each_field)
                field.text = str(direct_payment_details.get(each_field))
                payment_xml_root.append(field)
            # pretty string
            payment_xml_string = tostring(payment_xml_root)
            response = requests.post(self.gateway_url, data=payment_xml_string)
            response_xml = parseString(response.text)
            response_dict = nodeToDic(response_xml)

            return response_dict
        else:
            return self.process_direct_payment(**kwargs)
For debugging.  prints out the distributed idxs along with the
dataset/ETHPy150Open agiliq/merchant/billing/gateways/eway_gateway/eway_api/client.py/DirectPaymentClient.process_direct_payment--crossover with--dataset/ETHPy150Open OpenMDAO/OpenMDAO/openmdao/core/group.py/Group._dump_dist_idxs