Last active
August 29, 2015 14:17
-
-
Save styks1987/cfe3dc3f622b055f4f46 to your computer and use it in GitHub Desktop.
Authorize Auth + Prior Auth and Capture
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<createTransactionRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"> | |
<merchantAuthentication> | |
<name></name> | |
<transactionKey></transactionKey> | |
</merchantAuthentication> | |
<transactionRequest> | |
<transactionType>authOnlyTransaction</transactionType> | |
<amount>1563.00</amount> | |
<payment> | |
<creditCard> | |
<cardNumber>4111111111111111</cardNumber> | |
<expirationDate>042020</expirationDate> | |
<cardCode>123</cardCode> | |
</creditCard> | |
</payment> | |
<billTo> | |
<firstName>Katie</firstName> | |
<lastName>Wiederman</lastName> | |
<address>818 Cimmaron Way</address> | |
<city>Ottawa</city> | |
<state>IL</state> | |
<zip>61350</zip> | |
</billTo> | |
<transactionSettings> | |
<setting> | |
<settingName>testRequest</settingName> | |
<settingValue /> | |
</setting> | |
</transactionSettings> | |
</transactionRequest> | |
</createTransactionRequest> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<createTransactionResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> | |
<messages> | |
<resultCode>Ok</resultCode> | |
<message> | |
<code>I00001</code> | |
<text>Successful.</text> | |
</message> | |
</messages> | |
<transactionResponse> | |
<responseCode>1</responseCode> | |
<authCode>Z785CT</authCode> | |
<avsResultCode>Y</avsResultCode> | |
<cvvResultCode>P</cvvResultCode> | |
<cavvResultCode>2</cavvResultCode> | |
<transId>2230173122</transId> | |
<refTransID /> | |
<transHash>95A530E7F4884FAAB8F0AFB620B6A348</transHash> | |
<testRequest>0</testRequest> | |
<accountNumber>XXXX1111</accountNumber> | |
<accountType>Visa</accountType> | |
<messages> | |
<message> | |
<code>1</code> | |
<description>This transaction has been approved.</description> | |
</message> | |
</messages> | |
</transactionResponse> | |
</createTransactionResponse> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<createTransactionRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"> | |
<merchantAuthentication> | |
<name></name> | |
<transactionKey></transactionKey> | |
</merchantAuthentication> | |
<transactionRequest> | |
<transactionType>priorAuthCaptureTransaction</transactionType> | |
<amount>572.68</amount> | |
<refTransId>2230173122</refTransId> | |
<order> | |
<invoiceNumber>P51396896</invoiceNumber> | |
</order> | |
<lineItems> | |
<lineItem> | |
<itemId>2</itemId> | |
<name>123 Labels</name> | |
<description>High+Quality%2C+4.750%22+x+4.750%22+Circle%2C+Black+Only+%281%2FC%29+Printing%2C+White+Paper%2C+Gloss+Finish+-+UV+Resistant%2C+1+Design%2C+Electronic+Proof</description> | |
<quantity>1</quantity> | |
<unitPrice>558.55</unitPrice> | |
</lineItem> | |
</lineItems> | |
<tax> | |
<amount>0.00</amount> | |
<name>Sales Tax</name> | |
</tax> | |
<shipping> | |
<amount>14.13</amount> | |
<name>UPS Ground</name> | |
</shipping> | |
<taxExempt>1</taxExempt> | |
<poNumber>44444444</poNumber> | |
<customer> | |
<id>6421</id> | |
</customer> | |
<shipTo> | |
<firstName>Katie</firstName> | |
<lastName>Wiederman</lastName> | |
<address>818 Cimmaron Way</address> | |
<city>Ottawa</city> | |
<state>IL</state> | |
<zip>61350</zip> | |
<country>United States</country> | |
</shipTo> | |
<customerIP>192.168.169.166</customerIP> | |
<transactionSettings> | |
<setting> | |
<settingName>testRequest</settingName> | |
<settingValue /> | |
</setting> | |
</transactionSettings> | |
</transactionRequest> | |
</createTransactionRequest> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<createTransactionResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> | |
<messages> | |
<resultCode>Error</resultCode> | |
<message> | |
<code>E00001</code> | |
<text>An error occurred during processing. Please try again.</text> | |
</message> | |
</messages> | |
<transactionResponse /> | |
</createTransactionResponse> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment