Reply
Member
Posts: 4
Registered: ‎12-27-2012

AIM API: Dictionary response with keys of Fields in the Payment Gateway?

Hi

 

I am using C# AIM and the purchase responses are a string delimited by vertical bars ("|").

 

Is there available a dictionary response with keys of Fields in the Payment Gateway?

 

See http://www.authorize.net/support/AIM_guide.pdf, page 40

 

Thank you

 

Jeff

Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: AIM API: Dictionary response with keys of Fields in the Payment Gateway?

It will be too late to get the delimited char on a response.

But you could set it in the request x_delim_char, page 68

Member
Posts: 4
Registered: ‎12-27-2012

Re: AIM API: Dictionary response with keys of Fields in the Payment Gateway?

Thank you for your response, how I do not want to set the delimiting character

 

Currently I am spliting the response string by it delimiting character, then filling that split into a List<string>, and then filling item by item within List<string> into a Dictionary<string, string> where the Keys are the Fields in the Payment Gateway.

 

Instead,  is there available a Dictionary<string, string> response?

Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: AIM API: Dictionary response with keys of Fields in the Payment Gateway?

No, AIM only return the results and not the Fields name. So what you are doing would be it.