Guest User

Untitled

a guest
Sep 13th, 2013
18
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!-- authCaptureTransaction Request -->
  2. <createTransactionRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
  3.   <merchantAuthentication>
  4.     <name>...</name>
  5.     <transactionKey>...</transactionKey>
  6.   </merchantAuthentication>
  7.   <transactionRequest>
  8.     <transactionType>authCaptureTransaction</transactionType>
  9.     <amount>30.00</amount>
  10.     <payment>
  11.       <creditCard>
  12.         <cardNumber>4111111111111111</cardNumber>
  13.         <expirationDate>0115</expirationDate>
  14.         <cardCode>123</cardCode>
  15.       </creditCard>
  16.     </payment>
  17.     <billTo>
  18.       <firstName>John</firstName>
  19.       <lastName>Doe</lastName>
  20.       <address>123 Main St.</address>
  21.       <city>Sacramento</city>
  22.       <state>CA</state>
  23.       <zip>95814</zip>
  24.       <country>US</country>
  25.     </billTo>
  26.     <transactionSettings>
  27.       <setting>
  28.         <settingName>duplicateWindow</settingName>
  29.         <settingValue>0</settingValue>
  30.       </setting>
  31.       <setting>
  32.         <settingName>recurringBilling</settingName>
  33.         <settingValue>false</settingValue>
  34.       </setting>
  35.     </transactionSettings>
  36.   </transactionRequest>
  37. </createTransactionRequest>
  38.  
  39. '<!-- authCaptureTransaction Response -->
  40. <?xml version="1.0" encoding="utf-8"?>
  41. <createTransactionResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
  42. <messages>
  43.     <resultCode>Ok</resultCode>
  44.     <message>
  45.         <code>I00001</code>
  46.         <text>Successful.</text>
  47.     </message>
  48. </messages>
  49. <transactionResponse>
  50.     <responseCode>1</responseCode>
  51.     <authCode>ALM9A3</authCode>
  52.     <avsResultCode>Y</avsResultCode>
  53.     <cvvResultCode>P</cvvResultCode>
  54.     <cavvResultCode>2</cavvResultCode>
  55.     <transId>2198391156</transId>
  56.     <refTransID/>
  57.     <transHash>B107A4D9BA313BE2134604CD942AEE2B</transHash>
  58.     <testRequest>0</testRequest>
  59.     <accountNumber>XXXX1111</accountNumber>
  60.     <accountType>Visa</accountType>
  61.     <messages>
  62.         <message>
  63.             <code>1</code>
  64.             <description>This transaction has been approved.</description>
  65.         </message>
  66.     </messages>
  67. </transactionResponse>
  68. </createTransactionResponse>
  69.  
  70. <!-- refundTransaction Request -->
  71. <createTransactionRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
  72.   <merchantAuthentication>
  73.     <name>...</name>
  74.     <transactionKey>...</transactionKey>
  75.   </merchantAuthentication>
  76.   <transactionRequest>
  77.     <transactionType>refundTransaction</transactionType>
  78.     <amount>30.00</amount>
  79.     <payment>
  80.       <creditCard>
  81.         <cardNumber>XXXX1111</cardNumber>
  82.       </creditCard>
  83.     </payment>
  84.     <refTransId>2198391156</refTransId>
  85.     <transactionSettings></transactionSettings>
  86.   </transactionRequest>
  87. </createTransactionRequest>
  88.  
  89. <!-- refundTransaction Response -->
  90. <?xml version="1.0" encoding="utf-8"?>
  91. <ErrorResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
  92. <messages>
  93.     <resultCode>Error</resultCode>
  94.     <message>
  95.         <code>E00003</code>
  96.         <text>The element 'creditCard' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has incomplete content. List of possible elements expected: 'expirationDate' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'.</text>
  97.     </message>
  98. </messages>
  99. </ErrorResponse>
  100.  
  101. <!-- refundTransaction Response if I include expirationDate -->
  102. <?xml version="1.0" encoding="utf-8"?>
  103. <createTransactionResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
  104. <messages>
  105.     <resultCode>Error</resultCode>
  106.     <message>
  107.         <code>E00027</code>
  108.         <text>The transaction was unsuccessful.</text>
  109.     </message>
  110. </messages>
  111. <transactionResponse>
  112.     <responseCode>3</responseCode>
  113.     <authCode/>
  114.     <avsResultCode>P</avsResultCode>
  115.     <cvvResultCode/>
  116.     <cavvResultCode/>
  117.     <transId>0</transId>
  118.     <refTransID>2198390733</refTransID>
  119.     <transHash>776DDFB6143B0F9628BB4B29DC9F151C</transHash>
  120.     <testRequest>0</testRequest>
  121.     <accountNumber>XXXX1111</accountNumber>
  122.     <accountType>Visa</accountType>
  123.     <errors>
  124.         <error>
  125.             <errorCode>54</errorCode>
  126.             <errorText>The referenced transaction does not meet the criteria for issuing a credit.</errorText>
  127.         </error>
  128.     </errors>
  129. </transactionResponse>
  130. </createTransactionResponse>
RAW Paste Data