Network Merchants (NMI) Integration Resources: Direct Post API Documentation
Network Merchants (NMI) Integration Resources: Direct Post API Documentation
Integration Resources
Direct Post API
Documentation
June 2007
Table of Contents
Methodology........................................................................................................ 2
Direct Post Method (Server to Server) FIG. 1 ................................................................ 2
Transaction Types .............................................................................................. 3
Sale (sale) ........................................................................................................................ 3
Authorization (auth) ........................................................................................................ 3
Capture (capture) ............................................................................................................ 3
Void (void) ...................................................................................................................... 3
Refund (refund) ............................................................................................................... 3
Credit (credit) .................................................................................................................. 3
Update (update) ............................................................................................................... 3
Transaction Variables ......................................................................................... 4
Sale/Authorization/Credit ............................................................................................... 4
Capture ............................................................................................................................ 5
Void................................................................................................................................. 5
Refund ............................................................................................................................. 5
Update ............................................................................................................................. 5
Transaction Response Variables....................................................................... 6
Standard Response .......................................................................................................... 6
Retail Data ........................................................................................................... 6
Passing Retail Magnetic Stripe Data............................................................................... 6
Testing Information ............................................................................................ 7
Transaction Testing Account .......................................................................................... 7
Transaction POST URL .................................................................................................. 7
Test Transaction Information .......................................................................................... 7
Triggering Errors in Test Mode ...................................................................................... 8
Examples ............................................................................................................. 8
Direct Post Format .......................................................................................................... 8
Changelog ........................................................................................................... 8
Appendix 1 – AVS Response Codes ................................................................. 9
Appendix 2 – CVV Response Codes ................................................................. 9
Appendix 3 – response_code Lookup Table .................................................. 10
In the Direct Post method, the communications with the cardholder (Steps 1 and
4) are developed completely by the merchant and therefore are not defined by the
Payment Gateway. Step 1 should simply collect the payment data from the
cardholder and Step 4 should display the appropriate transaction receipt or
declined message.
In Step 3, the transaction responses are returned in the body of the HTTP
response in a query string name/value format delimited by ampersands. For
example: variable1=value1&variable2=value2&variable3=value3
Authorization (auth)
Capture (capture)
Void (void)
Refund (refund)
Credit (credit)
Update (update)
Capture
Void
Refund
Update
Retail Data
Passing Retail Magnetic Stripe Data
The Payment Gateway demo account can also be used for testing at any
time. Please use the following username and password for testing with
this account:
Username: demo
Password: password
https://secure.networkmerchants.com/api/transact.php
This URL is the same for both Live and Test Mode environments.
Visa 4111111111111111
MasterCard 5431111111111111
DiscoverCard 6011601160116611
American Express 341111111111111
Credit Card Expiration: 10/10
Amount > 1.00
Examples
Direct Post Format
username=demo&password=password&type=sale&ccnumber=4111111111
111111&ccexp=0711&cvv=999&amount=10.00
response=1&responsetext=SUCCESS&authcode=123456&transactionid=2
81719471&avsresponse=&cvvresponse=M&orderid=&type=sale&response_code=100
Changelog