E-Payment Integrator 2020 Python Edition

Questions / Feedback?

get_response_var Method

Parses additional information out of the response.

Syntax

def get_response_var(name: str) -> str: ...

Remarks

Due to the fact that this class supports so many gateways, only the most commonly used response variables are parsed into the response properties. Any additional response information contained within the response_data may be retrieved with this on_get_response_var method. There are three formats for the response_data returned by the gateways this class supports: Name/value pairs, delimited list, or XML. The value you pass in the Name parameter changes based on these formats, as detailed below:

If the response_data property contains name/value pairs, pass the name in the Name parameter and this method will return the value. For instance, if response_data contains "ResponseCode=00&FraudScore=53&ApprovalCode=123456&...", calling GetResponseVar("FraudScore") will return "53".

However, if response_data contains a delimited list, pass the index of the field you wish to receive. For instance, if response_data contains "00|53|123456|...", calling GetResponseVar("1") will return "53".

Finally, if response_data contains XML, pass the xpath to the value you wish to receive. For instance, if response_data contains "<Response><Code>00</Code><FraudScore>53</FraudScore><ApprovalCode>123456</ApprovalCode></Response>", calling GetResponseVar("/Response/FraudScore") will return "53".

Copyright (c) 2021 /n software inc. - All rights reserved.
E-Payment Integrator 2020 Python Edition - Version 20.0 [Build 7941]