E-Payment Integrator 2016 .NET Edition
E-Payment Integrator 2016 .NET Edition
Questions / Feedback?

GetResponseVar Method

Parses additional information out of the response.

Syntax

[VB.NET]
Public Function GetResponseVar(ByVal Name As String) As String
[C#]
public string GetResponseVar(string name);

Remarks

Due to the fact that this component supports so many gateways, only the most commonly used response variables are parsed into the Response fields. Any additional response information contained within the Data may be retrieved with this GetResponseVar method. There are three formats for the Data returned by the gateways this component 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 Data field contains name/value pairs, pass the name in the Name parameter and this method will return the value. For instance, if Data contains "ResponseCode=00&FraudScore=53&ApprovalCode=123456&...", calling GetResponseVar("FraudScore") will return "53".

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

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

 
 
Copyright (c) 2020 /n software inc. - All rights reserved.
E-Payment Integrator 2016 .NET Edition - Version 16.0 [Build 7354]