cancel
Showing results for 
Search instead for 
Did you mean: 

AIM response is not in correct order

Start off with some basics here:

1) This software is an authorize.net certified solution

2) The software works on everyone's site

3) But not this one.

 

The site in question gets a response back, but the elements are not in the correct order. As such, the software does not know how to process the response. Example: the transaction type "auth_capture" should be returned in position 12. Instead, it is in position 35. How is the software supposed to guess where the correct elements are??

 

Below, please see the raw pipe-separated string and also a numbered layout with the order of elements.

 

Any help you can provide would be wonderful; it seems insane that one of dozens of customers would get the wrong information back. AIM ref guide: http://www.authorize.net/support/AIM_guide.pdf

 

|3|||2|||33|||Description is required.||||||P|||0|||||||||11.84|||CC|||auth_capture||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||1AF41A8E114224FF1A5C15E5F09FFCEE|||||||||||||||||||||||||||||||||||||||XXXX1111|||Visa|||||||||||||||||||||||||||||||||||||||||||||||||
---

  1.  
  2.  
  3.  
  4.  
  5.  
  6. 33 
  7.  
  8.  
  9. Description is required. 
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25. 11.84 
  26.  
  27.  
  28. CC 
  29.  
  30.  
  31. auth_capture 
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109. 1AF41A8E114224FF1A5C15E5F09FFCEE 
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148. XXXX1111 
  149.  
  150.  
  151. Visa 
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
tn77
Member
1 ACCEPTED SOLUTION

Accepted Solutions

http://developer.authorize.net/faqs/#diffdelim

If both the delim character and the encap character are set to pipe, every field will be separated by 3 pipes instead of 1, leading to field padding. This will produce the results you're seeing.

View solution in original post

4 REPLIES 4

Look like the x_encap_char is set as a pipe'|' either in code

or in the merchant account(since you say it working on other site, this is probably it)

Account - Settings - Transaction Format Settings - Transaction Response Settings - Direct Response
 


RaynorC1emen7
Expert

Yes, pipe is the separator. But what does that have to do with the order of the elements in the array? The element order is the problem here.

http://developer.authorize.net/faqs/#diffdelim

If both the delim character and the encap character are set to pipe, every field will be separated by 3 pipes instead of 1, leading to field padding. This will produce the results you're seeing.

Oh, I see... the "encap" character. Gotcha... perfect sense. I missed that or misunderstood that in your previous post.

 

I will have the merchant check this.