SecureNet Docs
SecureNet Docs
Table of Contents
2. Gateway .......................................................................................................................................................... 10 2.1. 2.2. 2.3. 2.4. 3. What is the Gateway? .............................................................................................................................. 10 Service Based Authorization Process ....................................................................................................... 10 How does the Gateway work? .................................................................................................................. 10 What is required to implement the Gateway? .......................................................................................... 10
Gateway Implementation.................................................................................................................................11 3.1. 3.2. Service and SOAP Overview .....................................................................................................................11 Authorization Components...................................................................................................................... 12 Request ............................................................................................................................................ 12 Response.......................................................................................................................................... 12
Gateway Request .............................................................................................................................................13 4.1. Standard Payment Transactions ............................................................................................................. 14 Transaction Request Object Summary ............................................................................................. 14 Transaction Request Object Specification .........................................................................................15 TRANSACTION .........................................................................................................................15 MERCHANT_KEY REQUIRED FOR ALL TRANSACTIONS...................................................... 16
4.1.2.2.
SecureNet Gateway Implementation Guide 4.1.1. 4.1.2.3. 4.1.2.4. 4.1.2.5. 4.1.2.6. 4.1.2.7. 4.1.2.8. 4.1.2.9. 4.1.2.10. 4.1.2.11. 4.1.2.12. 4.1.2.13. 4.1.2.14. 4.1.2.15. 4.1.2.16. 4.1.2.17. 4.1.3. 4.1.3.1. 4.1.3.2. CARD ........................................................................................................................................ 16 CHECK ....................................................................................................................................... 17 CUSTOMER_BILL ..................................................................................................................... 18 CUSTOMER_SHIP .................................................................................................................... 19 ENCRYPTION ........................................................................................................................... 20 LEVEL2 ..................................................................................................................................... 20 LEVEL3 ..................................................................................................................................... 21 LEVEL3PRODUCT .................................................................................................................... 22 MPI ........................................................................................................................................... 23 AUTO ....................................................................................................................................... 23 PETROLEUM ............................................................................................................................ 24 HOTEL ...................................................................................................................................... 24 PRODUCT................................................................................................................................. 25 RESTAURANT SERVICE ........................................................................................................... 25 USERDEFINED ......................................................................................................................... 26
Transaction Request Message Format ............................................................................................. 26 Credit Card, Debit Card, EBT, and Stored Value Card Transactions .......................................... 26 Electronic Check Transactions .................................................................................................. 29
SecureNet Gateway Implementation Guide 4.1.1. 4.2. SecureNet Vault/Tokenization Transactions .............................................................................................31 Transaction Vault Object Summary................................................................................................. 32 Transaction Vault Object Specification ............................................................................................ 32 TRANSACTION_VAULT .......................................................................................................... 32 ACCOUNT_VAULT ....................................................................................................................33 CUSTOMER_VAULT..................................................................................................................33 OPERATIONPARAMETERS ...................................................................................................... 34
4.2.1. 4.2.2.
AutoBill Transactions ............................................................................................................................... 34 PLAN_AB Object Summary ............................................................................................................. 34 PLAN_AB Object Specification .........................................................................................................35 PLAN_AB ..................................................................................................................................35 OPTIONS...................................................................................................................................35 INSTALLMENT ......................................................................................................................... 36 RECURRING .............................................................................................................................. 37 PAYMENT_AB .......................................................................................................................... 38
SecureNet Gateway Implementation Guide 4.1.1. 5. Gateway Response .......................................................................................................................................... 40 5.1. GATEWAYRESPONSE ............................................................................................................................. 41 GATEWAYRESPONSE Object Summary.......................................................................................... 41 GATEWAYRESPONSE Object Specification .................................................................................... 41 ABRESPONSE .......................................................................................................................... 42 TRANSACTIONRESPONSE ...................................................................................................... 42 VAULTACCOUNTRESPONSE .................................................................................................. 45 VAULTCUSTOMERRESPONSE ................................................................................................ 46
Response objects for Settlement Transactions ....................................................................................... 47 BATCHDATA Object Summary ....................................................................................................... 47 BATCHDATA Object Specification ................................................................................................... 47 BATCHDATA ............................................................................................................................ 47 BATCHDETAIL ......................................................................................................................... 47
5.2.1. 5.2.2.
Overview of Gateway Methods ....................................................................................................................... 49 6.1. Methods available through https://certify.securenet.com/API/Gateway.svc or https://gateway.securenet.com/API/Gateway.svc ................................................................................... 49 6.1.1. Methods for Standard Payment Transactions .................................................................................. 49
SecureNet Gateway Implementation Guide 4.1.1. 6.1.2. 6.1.3. 6.1.4. 6.2. Methods for Vault Transactions ....................................................................................................... 50 Methods for AutoBill Transactions ................................................................................................... 52 Methods for Settlement Transactions ...............................................................................................53
Reporting API methods for Batch and Transaction Services, available through: https://certify.securenet.com/api/data/transaction.svc or https://gateway.securenet.com/api/data/transaction.svc ............................................................................53
6.3.
Reporting API methods for SecureNet Vault and AutoBill Services, available through: https://certify.securenet.com/api/data/service.svc or or https://gateway.securenet.com/api/data/service.svc ................................................................................................................................................................ 54
7.
Appendix ......................................................................................................................................................... 55 7.1. 7.2. 7.3. 7.4. 7.5. 7.6. 7.7. 7.8. 7.9. ACDI ........................................................................................................................................................ 55 AVS_RESULT_CODE ............................................................................................................................... 55 CARD_CODE_RESPONSE_CODE............................................................................................................ 56 CARDLEVEL_RESULTS ........................................................................................................................... 56 CAVV_RESPONSE_CODE ........................................................................................................................57 CARDTYPE Codes .................................................................................................................................... 58 DCI ........................................................................................................................................................... 58 INDUSTRYSPECIFICDATA ....................................................................................................................... 59 METHOD ................................................................................................................................................. 59
SecureNet Gateway Implementation Guide 4.1.1. 7.10. 7.11. 7.12. 7.13. 7.14. 7.15. 7.16. 7.17. 7.18. 7.19. ORDERID ................................................................................................................................................ 59 REF_TRANSID ......................................................................................................................................... 60 RESPONSE_CODE................................................................................................................................... 60 SECCODE ................................................................................................................................................ 60 Transaction Type Table............................................................................................................................ 61 SOFTDESCRIPTOR ................................................................................................................................. 66 TRACKDATA ........................................................................................................................................... 67 TRANSACTION_SERVICE ........................................................................................................................ 69 Product Codes for Petroleum Industry Transactions ................................................................................ 69 Developer Notes .......................................................................................................................................70 Sample Code ....................................................................................................................................70 Standard Payment Transaction - C# ..........................................................................................70 SecureNet Vault Transactions - C# ............................................................................................ 71
7.19.1.
Some best practices for SecureNet API implementation ................................................................... 77 Test Data........................................................................................................................................... 77 Fault exceptions ................................................................................................................................78 API Error Codes .................................................................................................................................78 How to Contact Technical Support ................................................................................................... 91
1.
Introduction
Payment Gateways facilitate electronic commerce by enabling merchants to accept credit cards and electronic checks as methods of payment for goods and services sold. The Gateway acts as a bridge between the merchant's website/terminal and the financial institutions that process payment transactions. Payment data is collected from the shopper and submitted to the Gateway for real-time authorization. Authorization is the process of checking the validity and available balance of a customer's credit card before the transaction can be accepted. To authorize a given credit card transaction, the Gateway transmits the transaction information to the appropriate financial institutions for validation, then returns the response (approved or declined) from the institution to the merchant or customer. The payment Gateway supports real-time and offline requests for credit card authorization. The Gateway also supports electronic check transactions. Merchants can collect customer bank account numbers and routing numbers to pay for purchases. This document describes how transactions can be submitted to the Gateway for real-time processing. The Gateway is the recommended integration method for merchants who have the capability to initiate both client and server-side SSL connections. This method offers the merchant a high degree of security and control because transaction data is submitted to the Gateway over a secure server-to-server connection, initiated by the merchant server. Since the merchant server will receive a response directly from the Gateway, the merchant has more control over the response to the end customer.
2.
Gateway
10
3.
Gateway Implementation
This guide explains how to integrate SecureNet into your website or application to process credit card or electronic check transactions over SecureNets payment gateway. Transactions could be submitted to the Gateway for processing through an https POST, as an XML request, as a web-service SOAP message, and using a WCF service.
11
12
4.
Gateway Request
The objects submitted to the Gateway are shown below. Parameters for each object are described in this document.
AutoBill Transactions
Object Name PLAN_AB INSTALLMENT RECURRING PAYMENT_AB Description This object defines the information that can be submitted to the Gateway for AutoBill transaction processing. This object contains information on Customers installment plan. This object contains information on Customers recurring payment plan. This object contains individual payment information, like amount, payment id, installment date, etc. Restrictions Must be enabled to use AutoBill. Must be enabled to use AutoBill. Must be enabled to use AutoBill. Must be enabled to use AutoBill.
Settlement Transactions
Object Name MERCHANT_KEY Description This object is used to verify merchant before processing any transaction and is required for any operation. Restrictions Required for CloseBatch method.
13
4.1. 4.1.1.
This section outlines the various high level sections within the Transaction Request Object. TRANSACTION
MERCHANT_KEY CARD CHECK CUSTOMER_BILL CUSTOMER_SHIP ENCRYPTION LEVEL2 LEVEL3 MPI AUTO PETROLEUM HOTEL PRODUCTS SERVICE USERDEFINED SECONDARY_MERCHANT KEY LEVEL3 TRANSACTION MERCHANT_KEY CARD CHECK CUSTOMER_BILL CUSTOMER_SHIP ENCRYPTION LEVEL2
14
4.1.2.
This section details high-level Transaction Request Object specification. Descriptions, rules, and notes for each object of the Transaction Request are detailed below.
4.1.2.1.
This object defines information that can be submitted to the Gateway for real-time transaction processing.
Required
Notes
<TRANSACTION> <MERCHANT_KEY> <CARD> <CHECK> <CUSTOMER_BILL> <CUSTOMER_SHIP> <ENCRYPTION> <LEVEL2> <LEVEL3> <AUTO> <PETROLEUM> <HOTEL> <PRODUCTS> <SERVICE> <USERDEFINED> <SECONDARY_MERCHANT_KEY > </TRANSACTION>
Object / 1 Object / 1 Object / 1 Object / 1 Object / 1 Object / 1 Object / 1 Object Array Object / 1 Object / 1 Object / 1
Please see Transaction Request Object Summary Please see Transaction Request Object Summary Please see Transaction Request Object Summary Please see Transaction Request Object Summary Please see Transaction Request Object Summary Please see Transaction Request Object Summary Please see Transaction Request Object Summary Please see Transaction Request Object Summary Please see Transaction Request Object Summary Please see Transaction Request Object Summary Please see Transaction Request Object Summary
15
4.1.2.2.
This object is used to verify merchant before processing any transaction and is required for any operation.
XML Tag
<MERCHANT_KEY> <GROUP_ID> <SECURENETID> <SECUREKEY> <ADDITIONALINFO>
Required
Notes
SecureNet Group ID. Not applicable to all merchants, should be provided by SecureNet. Please contact us for more information. 7-digit unique SecureNet ID provided by SecureNet to identify the merchant and is required for each submitted transaction. If you dont have your SecureNet ID please contact us. Case-sensitive unique SecureKey is associated with corresponding SecureNet ID, used to authenticate the merchant and is required for each submitted transaction. For EBT transactions only. String format: 11 (EBT indicator) followed by a 7digit FNS number (left-justified, space-filled, if FNS is less than 7 digits).
</MERCHANT_KEY>
4.1.2.3.
Card payment object contains card information, like card number, expiration date, and can be any of the following: Credit Card, Check Card, Debit Card, or Stored Value Card.
XML Tag
<CARD> <CARDCODE>
Required
Notes
Required for all E-commerce and MOTO transactions. May also be manually keyed-in for Retail transactions for added security and lower interchange rate.
A code that is printed on the back of a card. Used as partial assurance that the card is in the buyers possession. This code is 3 digits long for Visa, MasterCard, and Discover, and 4 digits long for American Express. Not required but could be used for securing credit card transactions by means of card security code validation. If card security code data is submitted, the issuer verifies whether the number matches the number assigned to the card.
<CARDNUMBER>
String / 24
Required for Card-Not-Present transactions and manually keyed-in transactions, when TACKDATA is not present. Full card number is required for AUTH_ONLY, PARTIAL_AUTH_ONLY, AUTH_CAPTURE, PARTIAL_AUTH_CAPTURE, CAPTURE_ONLY, CREDIT_AUTHONLY, FORCE_CREDIT, FORCE_CREDIT_AUTHONLY, VERIFICATION, AUTH_INCREMENT, ISSUE, ACTIVATE, REDEEM, REDEEM_PARTIAL, DEACTIVATE, REACTIVATE, and INQUIRY_BALANCE transactions. Card number, 16 digits long for Visa, MasterCard and Discover, 15 digits long for American Express. This value may not contain spaces, nonnumeric characters, or dashes.
16
Last 4 digits of the card number are required for PRIOR_AUTH_CAPTURE, VOID, PARTIAL_VOID, CREDIT, CREDIT_PRIORAUTHCAPTURE, and FORCE_CREDIT_PRIORAUTHCAPTURE transactions. Not required when processing transactions for stored customer records.
<EXPDATE>
String / 4
Required for Card-Not-Present transactions and manually keyed-in transactions, when TACKDATA is not present.
A valid card expiration date, which is not in the past. Format: MMYY Example: 1012 represents November 2012. Debit Only Unaltered KSN Number from PIN pad. Debit Only PinBlock from PIN pad. This field contains information encoded from a valid magnetic stripe. It includes information such as Primary Account Number and Expiration Date. Please see Appendix for more information. 00 Future use. No credit card account verification, default* 01 Future use. Credit card account verification* 11 followed by a 15-character long left-justified space-filled EBT Voucher number.** 02 Updates the EXPDATE of credit card during ProcessTransaction by Customer ID, if expiration date supplied is a future date for the PaymentID. * - Applicable only when adding a new Account to the SecureNet Vault. ** - For EBT Voucher Clear transactions only.
Required if METHOD = DB Required if METHOD = DB Required for Card-Present Credit Card transactions, Pin Debit transactions, and EBT (Not Voucher Clear) transactions. Required if METHOD= EBT and Transaction Type Code=0300 (CAPTURE_ONLY) for Voucher Clear Transactions.
<ADDITIONALINFO>
String / 250
</CARD>
4.1.2.4.
Check payment object is required for electronic check transactions and contains information on corresponding checking or savings account.
XML Tag
<CHECK> <ABACODE>
Required
Notes
True
17
</CHECK>
4.1.2.5.
This object contains customers billing information, like billing address and telephone number, and is required for all E-Commerce transactions.
XML Tag
Required
Notes
<CUSTOMER_BILL> <ADDRESS> True for E-Commerce transactions <CITY> String / 40 True for E-Commerce transactions
Billing street address. Together with Zip Code can be used for securing credit card transactions by means of the Address Verification System (AVS), result of AVS check will be coming back in AVS_RESULT_CODE variable of the TRANSACTIONRESPONSE object. Billing City
18
4.1.2.6.
This object contains customers shipping information, like name and address.
XML Tag
<CUSTOMER_SHIP> <ADDRESS> <CITY> <COMPANY> <COUNTRY> <FIRSTNAME> <LASTNAME> <STATE> <ZIP> </ CUSTOMER_ SHIP >
Required
Notes
Customers shipping Street Address Customers shipping City Customers shipping Company Customers shipping Country Shipping First Name Shipping Last Name Shipping State Shipping Zip Code
19
Required
Notes
4.1.2.8.
This object is used for Level 2 data. Level 2 transactions normally involve corporate cards issued from a U.S. bank.
Required
Notes
<LEVEL2>
<DUTY> <FREIGHT> <PONUM> <TAX> <TAXFLAG>
Duty Amount Freight Amount Purchase Order Number Tax Amount. This amount must be submitted separately from the total transaction amount. 0 = No Tax 1 = Tax Included 2 = Tax Exempt
</ LEVEL2>
* - Required for Level 2 processing, if this data is not provided transaction will still be processed, but as Level 1.
20
4.1.2.9.
LEVEL3
This object is used for Level 3 data. Purchases that qualify as Level 3 transactions generally are made with government credit card or corporate cards. Please note: Level 3 is only available to merchants on First Data Nashville platform and only for E-Commerce , Retail, and MOTO transactions.
XML Tag
<LEVEL3>
<ALTTAX_AMT> <ALTTAX_AMT_INDICATOR> <COUNTRYCODETO> <MERCHANT_VAT_REGISTRATION_NUM> <ORDER_DISCOUNT_AMT> <PURCHASER_ORDER_DATE> <PURCHASER_VAT_REGISTRATION_NUM > <SUMMARY_COMMODITY_CODE> <VATTAX_AMT> <VATTAX_RATE> <VAT_INVOICE_REFNUM> <ZIPFROM> <ZIPTO> <LEVEL3PRODUCTS>
Required
Notes
False False False False False False False False False False False False False False
Alternate tax Amount Alternate tax indicator, Y/N Country code shipped to Merchant VAT Registration Number Order Discount Amount Purchase Order Date Purchaser VAT Registration Number
Summary Commodity Code VAT Tax Amount VAT Tax Rate VAT invoice Reference Number Zip Code Shipped From Zip Code Shipped To Array of LEVEL3PRODUCT
</ LEVEL3>
21
4.1.2.10.
This object contains individual level3 product information, like item name, description, tax amount, unit price, quantity, etc.
Required
Notes
<LEVEL3PRODUCT>
<ALTTAXID> <COMMODITYCODE> <DISCOUNTAMT> <DISCOUNTRATE> <DISCOUNT_INDICATOR> <GROSSNET_INDICATOR> <ITEMCODE> <ITEMNAME> <ITEMTOTALAMT> <QUANTITY> <TAXAMT> <TAXRATE> <TAXTYPEIDENTIFIER> False False False False False False False False False False False False False Alternate tax Amount Commodity Code Discount Amount Discount Rate Discount Indicator Gross Net Indicator Item Code Item Name Item Total Amount Item Quantity Tax Amount Tax Rate 00 - Unknown 01 - Federal/National sales tax 02 - State Sales tax 03 - City Sales tax 04 - Local Sales Tax 05 - Municipal Sales Tax 06 - Other Tax 10 - Value Added Tax (VAT) 11 - Goods and Services Tax (GST) 12 - Provincial Sales Tax 20 - Room Tax 21 - Occupancy Tax 22 - Energy Tax Tax Type that was Applied Unit of Measure Unit Price
22
</LEVEL3PRODUCT>
4.1.2.11.
Required
Notes
<MPI>
<AUTHINDICATOR> <AUTHVALUE>
False False
The electronic commerce indicator (ECI) value for a Visa transaction; or the universal cardholder authentication field (UCAF) indicator for MasterCard transaction. The cardholder authentication verification value (CAVV) for Visa transactions; or accountholder authentication value (AVV)/ universal cardholder authentication field (UCAF) for MasterCard transactions.
</MPI>
4.1.2.12.
This object is used for Rental industry only and includes rental-related information, like city rented and returned in, rental and return times, etc.
Required
Notes
<AUTO>
<EXTRA_CHARGEAMOUNT> <EXTRA_CHARGECODE> <PREFERRED_CUSTOMER> <RENTALCITY> <RENTALDATETIME> <RENTALSTATE> <RETURNCITY> <RETURNDATETIME> <RETURNSTATE> <SALECODE>
True True True True True True True True True False
Additional Charge Amount Additional Charge Code Preferred Customer, Y/N City Rented in mmddyyyyhhMMss State Rented in City Returned In mmddyyyyhhMMss State Returned in Sale Code
</AUTO>
23
4.1.2.13.
This object is used for Petroleum industry only and includes information, like number of gallons, unit price, etc.
Required
Notes
<PETROLEUM>
<DRIVEJOBNUM> <FLEET_REFERENCENUM> <FULLSERV_INDICATOR> <GALLONS> <ODOMETER> <PIN> <PRODUCTS>
Driver Job Number Fleet Reference Number Full Service indicator Number of Gallons Odometer reading
Product Listing. Please see Appendix for Petroleum Product Codes. Tax Amount Price per unit Vehicle Number
</PETROLEUM>
4.1.2.14.
This object is used for Hotel industry only and includes information, like check-in, check-out times, room rate, etc.
Required
Notes
<HOTEL>
<CHARGETYPE> <CHECKIN_DATE> <CHECKOUT_DATE> <EXTRA_CHARGEAMOUNT> <EXTRA_CHARGECODE> <PREFERRED_CUSTOMER> <ROOMRATE> <SALECODE>
Type of Charge mmddyyyy mmddyyyy Additional Charge Amount Additional Charge Code Preferred Customer, Y/N Rate of room Sale Code
24
</HOTEL>
4.1.2.15.
This object contains individual product information, like product description, amount, quantity, etc.
Required
Notes
<PRODUCT>
<AMOUNT> <CODE> <DESCRIPTION> <NAME> <QUANTITY> <TAX> <TAXABLE> <UNIT> <UNITPRICE> False False False False False False False False False
Product Amount Product Code Product Description Product Name Product Quantity Product Tax Amount 0 = No 1 = Yes Unit of Measure Price per Unit
</PRODUCT>
4.1.2.16.
This object is used for the Restaurant industry and contains gratuity amount and server number.
Required
Notes
<SERVICE>
<GRATUITY> <SERVERNUM> False False
Gratuity Amount Server Number
</SERVICE>
25
4.1.2.17.
USERDEFINED
This object contains 50 user defined fields and allows merchants to store additional data along with transaction information. Please note that user defined fields are not intended to and must not be used to capture personally identifying information, like name, address, credit card number, social security number, driver's license number, state-issued identification number, passport number, and card verification numbers.
XML Tag
<USERDEFINED>
<UD1> <UD2> . <UD50>
Required
Notes
Additional Data Field Additional Data Field Additional Data Field Additional Data Field
</USERDEFINED>
4.1.3.
All gateway transactions include a common set of required parameters (listed first). Additional parameters are required depending on the transaction type. You can also provide many optional parameters, depending on the results you want returned. A sample Transaction Request has been included in the Appendix.
4.1.3.1.
Credit Card, Debit Card, EBT, and Stored Value Card Transactions XML Tag Data Type / Required Notes Max Length
Object / 1 Decimal / 15 Object / 1 String / 4 String / 7 Object / 1 String / 25 True True True True True True True
Please see Transaction Request Object Summary Total amount to be charged or credited. Include decimal point followed by decimal amount. Please see Transaction Request Object Summary Transaction Type Code indicated the type of processing required for Transaction Request. Transaction method, set to CC, DB, or SV accordingly. See Appendix Please see Transaction Request Object Summary Unique Transaction Order ID. String A-Z, 0-9 only. See Appendix.
<TRANSACTION>
<AMOUNT> <MERCHANT_KEY> <CODE> <METHOD> <CARD> <ORDERID>
26
Duplicate Check Indicator. Please see Appendix for more information. TRUE = Test Transaction, FALSE = Live Transaction. Default is FALSE. Indicates Transaction Handling when Vault is enabled. See Appendix. Transaction ID of a previously approved transaction, used in VOID, PARTIAL_VOID, CREDIT, PRIOR_AUTH_CAPTURE. Please see Appendix for more uses of REF_TRANSID.
<INDUSTRYSPECIFICDATA>
String / 1
Integer / 2
Integer / 2
<AUTHCODE>
String / 6
Required for E-commerce and MOTO transactions. Leave blank for retail transactions. Required if INDUSTRYSPECIFICDAT A=3 Required if INDUSTRYSPECIFICDAT A=3 Required for CAPTURE_ONLY transactions Required for Vault transactions Required for Vault transactions Specific to Industry Specific to Industry Specific to Industry Specific to Industry False
Industry Specific Data Required to send the right indicator for transaction. Accepted values: P, D, 1, 2, 3. Please see Appendix for more information.
Installment number for installment payment plan. 1-99. Number of total installments for installment plans. 1 99. Valid authorization code for Offline Transaction 0300 (CAPTURE_ONLY). Voice Authorization Code. Valid authorization code for EBT Voucher transaction (CAPTURE_ONLY). Contains the customer ID associated with the
<CUSTOMERID>
String / 25
<DEVICECODE>
String / 2
False
27
Transaction Source. Blank, unless specified/provided by SecureNet. Description of the transaction for which invoice is being issued. Invoice number associated with the transaction. For bill payment transactions, applicable for Visa only. B Bill payment D Debt indicator (contact SecureNet for more info) Don't include if you won't send a value. Additional Transaction Notes. Set to override Customer Billing information and User Defined fields from information provided in: 0 Transaction Request 1 Customer Vault Object 2 Account Vault Object 3 PRIOR_AUTH_CAPTURE transaction request, Level 2 information will be overwritten with the new Level 2 values. Use for PRIOR_AUTH_CAPTURE or SecureNet Vault transactions. Lane Number for Retail stores. Additional DBA descriptor. See Appendix. Please see Transaction Request Object Summary Please see Transaction Request Object Summary Please see Transaction Request Object Summary Please see Transaction Request Object Summary Please see Transaction Request Object Summary Please see Transaction Request Object Summary Please see Transaction Request Object Summary Please see Transaction Request Object Summary Please see Transaction Request Object Summary
<NOTE> <OVERRIDE_FROM>
False False
<RETAIL_LANENUM> <SOFTDESCRIPTOR> <CUSTOMER_BILL> <CUSTOMER_SHIP> <ENCRYPTION> <LEVEL2> <LEVEL3> <PRODUCTS> <USERDEFINED> <MPI> <SECONDARY_MERCHANT_KEY>
String / 6 String / 25 Object / 1 Object / 1 Object / 1 Object / 1 Object / 1 Object Array Object / 1 Object / 1 Object / 1
False False False False False False False False False False False
</TRANSACTION>
28
4.1.3.2.
Required
True True True True True True True True True True Required for VOID, PARTIAL_VOID, CREDIT, PRIOR_AUTH_CAPTUR E Required for Vault transactions Required for Vault transactions False False False False
Notes
Please see Transaction Request Object Summary Total amount to be charged or credited. Include decimal point followed by decimal amount. Please see Transaction Request Object Summary Transaction Type Code indicated the type of processing required for Transaction Request. Set Transaction Method to ECHECK. See Appendix Please see Transaction Request Object Summary Unique Transaction Order ID. String A-Z, 0-9 only. See Appendix. Duplicate Check Indicator. Please see Appendix for more information. TRUE = Test Transaction, FALSE = Live Transaction. Default is FALSE. Indicates Transaction Handling when Vault is enabled. See Appendix. Transaction ID of a previously approved transaction, used in VOID, PARTIAL_VOID, CREDIT, PRIOR_AUTH_CAPTURE. Please see Appendix for more uses of REF_TRANSID. SecureNet Vault Payment ID. Must be enabled on your account. Contains the customer ID associated with the transaction. Must be enabled on your account. Customer IP address. Include Customers IP that needs to be associated with the transaction. Recommended for e-Commerce merchants. Transaction Source. Blank, unless specified/provided by SecureNet. Description of the transaction for which invoice is being issued. Invoice number associated with the transaction.
<TRANSACTION>
<AMOUNT> <MERCHANT_KEY> <CODE> <METHOD> <CHECK> <ORDERID> <DCI> <TEST> <TRANSACTION_SERVICE> <REF_TRANSID>
29
False False
Additional Transaction Notes. Set to override Customer Billing information and User Defined fields from information provided in: 0 Transaction Request 1 Customer Vault Object 2 Account Vault Object 3 PRIOR_AUTH_CAPTURE transaction request, Level 2 information will be overwritten with the new Level 2 values. Use for PRIOR_AUTH_CAPTURE or SecureNet Vault transactions. Lane Number for Retail stores. Additional DBA descriptor. See Appendix. Please see Transaction Request Object Summary Please see Transaction Request Object Summary Please see Transaction Request Object Summary Please see Transaction Request Object Summary Please see Transaction Request Object Summary Please see Transaction Request Object Summary
</TRANSACTION>
30
4.2.
SecureNet Vault is SecureNets PCI-DSS compliant solution for storing information for credit cards, electronic checks, and Pin-less debit cards. It is a virtual database hosted by and at SecureNet on secure servers. Through tokenization, SecureNet Vault allows tokens to be created for credit card numbers. These tokens are then used for transactions instead of the actual credit card number. Multiple credit card information can be stored for a single individual in the form of tokens. Only the credit card number and expiry date will be stored in SecureNet Vault. The security code cannot be stored as it is against PCI compliance to do so. This means that track data cannot be stored either. In addition, debit cards are excluded, since it is against PCI compliance to store the pin and payments cannot be processed without the pin.
TRANSACTION_VAULT
This object defines information that can be submitted to the Gateway for Vault transaction processing. This object contains account information to add, update or delete, like payment method and corresponding card/account information. This object contains customer information to add, update or delete, like customer name, address, email, telephone number, etc. This object is used to verify merchant before processing any transaction and is required for any operation. This object is used to specify operation type (Add, Update, or Delete) and to specify whether Vault information is to be added even when transaction is declined in ProcessVaultTransaction method.
ACCOUNT_VAULT
CUSTOMER_VAULT
MERCHANT_KEY
OPERATIONPARAMETERS
31
TRANSACTION
TRANSACTION_VAULT
OPERATIONPARAMETE RS TRANSACTION
4.2.2.
4.2.2.1.
This object defines information that can be submitted to the Gateway for Vault transactions processing.
Required
Notes
32
4.2.2.2.
This object contains account information to add, update or delete, like payment method and corresponding card/account information.
XML Tag
<ACCOUNT_VAULT> <ACDI> <CUSTOMERID> <METHOD> <NOTES> <PAYMENTID> <PRIMARY>
Required
Notes
Account Duplicate Indicator. Values: 0, 1, 2. See Appendix for more information. Contains customer ID associated with transaction or record. Can be any string or AUTO. If AUTO is specified a unique CUSTOMERID is generated and returned in the response object. Indicates method of payment for the transaction being sent to the system. See Appendix for more information. Additional Notes field. Contains the Payment ID associated with the customer record. Can be any string or AUTO. If AUTO is specified, a unique PAYMENTID is generated and returned in the response object. Specifies if the account is Primary or not. Values: TRUE or FALSE. Set to FALSE by default. Multiple accounts (payment methods) can be stored for a single customer and only one account can be set as primary. The system will automatically default to another payment method for the customer if the primary payment is declined. Please see Transaction Request Object Summary
<CARD>
OBJECT / 1
<CHECK>
OBJECT / 1
<CUSTOMER_BILL>
OBJECT / 1
Required if METHOD = CC or PD Required if METHOD = ECHECK or CHECK21 Required for E-Commerce transactions
False
<USERDEFINED> </ACCOUNT_VAULT>
OBJECT / 1
4.2.2.3.
CUSTOMER_VAULT
33
SecureNet Gateway Implementation Guide 4.1.1. This object contains customer information to add, update or delete, like customer name, address, email, phone number, etc.
XML Tag
<CUSTOMER_VAULT>
<CSDI>
Required
Notes
True
<CUSTOMERID>
String / 25
True
Customer Duplicate Check Indicator 0 If Customer ID exists - return an Error 1 If Customer ID exists - do not add and continue with transaction. Contains the customer ID associated with the transaction or record. Can be any string or AUTO. If AUTO is specified a unique CUSTOMERID is generated and returned in the response object. Additional Notes field. Object containing Billing Customer information. Object Containing 50 user defined fields.
</CUSTOMER_VAULT>
4.2.2.4.
This object is used to specify operation type (Add, Update, or Delete) and to specify whether Vault information is to be added even when transaction is declined in ProcessVaultTransaction method.
Required
Notes
<OPERATIONPARAMETERS>
<ACTIONCODE> False 1 = ADD 2 = Update 3 = Delete Add Customer/Account if transaction is declined: 0 False 1 True
<ADD_IF_DECLINED>
Integer / 1
False
</OPERATIONPARAMETERS>
4.3.
AutoBill Transactions
The AutoBill feature allows merchants to set up automatic scheduled and recurring credit card and ACH transactions. Payments can be scheduled for automatic daily, weekly, monthly, quarterly, and yearly recurrence, as well as any interval in between. In addition, merchants can set up one or more single scheduled future payments for any date. The automatic installment generator can take a total amount due and evenly split the payment dates and payment amounts across a designated time frame.
4.3.1.
34
PLAN_AB
MERCHANT_KEY
This object defines the information that can be submitted to the Gateway for AutoBill transaction processing. This object is used to verify merchant before processing any transaction and is required for any operation. Installment payment plans consist of a single purchase of goods or services that is billed to an account in multiple segments, over a period of time, with payments occurring on a schedule agreed by a cardholder and merchant. This object contains information on Customers installment plan. Recurring payment plans exist when multiple transactions are processed at pre-determined intervals, as a result of an agreement for the purchase of products or services that are provided over time. This object contains information on Customers recurring payment plan. Array of PAYMENT_AB objects, containing individual payment information, like amount, payment id, installment date, etc.
INSTALLMENT
RECURRING
SCHEDULE
SCHEDULE
4.3.2. 4.3.2.1.
This object defines the information that can be submitted to the Gateway for AutoBill transaction processing.
XML Tag
<PLAN_AB> <MERCHANT_KEY> <INSTALLMENT> <RECURRING> <SCHEDULE> </PLAN_AB>
Required
Notes
Merchant Key is required to process any operation. Please see PLAN_AB Object Summary Please see PLAN_AB Object Summary Please see PLAN_AB Object Summary
4.3.2.2.
Please note that OPTIONS is a parent class of INSTALLMENT and RECURRING, so all parameters of OPTIONS are inherited by the two subclasses and are include in INSTALLMENT and RECURRING tables below.
XML Tag
<OPTIONS>
<CYCLE>
Required
Notes
True
35
<DAY> <FREQUENCY>
Integer / 2 Integer / 2
<MONTH> <WEEKDAY>
Integer / 2 Integer / 1
</OPTIONS>
4.3.2.3.
INSTALLMENT
Installment payment plans consist of a single purchase of goods or services that is billed to an account in multiple segments, over a period of time, with payments occurring on a schedule agreed by a cardholder and merchant. The INSTALLMENT object below contains information on Customers Installment plan.
XML Tag
<INSTALLMENT>
<CYCLE>
Required
Notes
True
<DAY>
Integer / 2
<FREQUENCY>
Integer / 2
Once every week/month/quarter/six months/year, as following: If CYCLE=M: 1-11 if CYCLE=W: 1-51 if CYCLE=Q: 1-3 for CYCLE=Y or CYCLE=B frequency is set automatically.
<MONTH>
Integer / 2
<WEEKDAY> <AMOUNT>
Integer / 1
1-12
Decimal / 15
True
36
<COUNT> <REMAINDER_OPTION>
Integer / 2 Integer / 1
True True
</INSTALLMENT>
4.3.2.4.
RECURRING
Recurring payment plans exist when multiple transactions are processed at pre-determined intervals, as a result of an agreement for the purchase of products or services that are provided over time. Recurring payment plans help simplify the process of billing a cardholder for a product or a service that is being provided on a continuous basis.
XML Tag
<RECURRING>
<CYCLE>
Required
Notes
True
<DAY> <FREQUENCY>
Integer / 2 Integer / 2
W weekly M monthly Q quarterly B semiannual Y yearly 1-28 Once every week/month/quarter/six months/year, as following: If CYCLE=M: 1-11 if CYCLE=W: 1-51 if CYCLE=Q: 1-3 for CYCLE=Y or CYCLE=B frequency is set automatically. 1-12 1-7, where 1 is Sunday
Total value to be charged to the payment method specified. Include decimal point followed by decimal amount. 0 - recurring bill has no end date 1 - recurring bill has an end date
Integer / 2 Integer / 1
Decimal / 15
Integer / 1
True
True
37
</RECURRING>
This object contains individual payment information, like amount, payment id, installment date, etc.
Required
Notes
<PAYMENT_AB>
<AMOUNT> <INSTALLMENTDATE > <INSTALLMENTNUM > <NUMOFRETRIES>
True
True True True
Total amount to be charged to the payment method specified. Include decimal point followed by decimal amount. Installment date. MMDDYY. Number of installments. 1-99. AutoBill offers the ability to reattempt a declined transaction every day for up to five consecutive days. Enter number of retries, between 1-5. Available in response. Will contain an array of all records for Installment and Variable billing, so that the merchant can see which has already been paid or not. Available in response. Will contain payment date of that Schedule ID for Installment and Variable billing, for Recurring billing - represents next billing date. Contains the Payment ID associated with the customer record. Can be any string or AUTO. If AUTO is specified, a unique PAYMENTID is generated and returned in the response object. Payment plan ID, auto-generated by the system and given to the merchant at the time Plan is added. 0 not yet processed, still in the queue 1 processed AutoBill allows multiple billing schedules per Customer ID. Schedule ID, auto-generated by the system and given to the merchant at the time Schedule is added. System Generated Unique ID for corresponding transaction, returned by the Gateway.
<PAID>
Integer
False
<PAYMENTDATE>
String
False
<PAYMENTID>
String / 25
Integer Integer / 1 Integer
True
Required for Update only False Required for Update only False
<TRANSACTIONID>
Integer / 15
</PAYMENT_AB>
4.3.3.
XML Tag
<PLAN_AB>
<ACTIVE>
Required
Notes
False
Available in response. Shows whether recurring billing on this record is enabled or disabled.
38
<INSTALLMENT> <MAXRETRIES>
Object / 1 Integer / 1
Please see PLAN_AB Object Summary AutoBill offers the ability to reattempt a declined transaction every day for up to five consecutive days. Enter maximum number of retries, default is 0, maximum is 5. This object is used to verify merchant before processing any transaction and is required for any operation. Available in response. Next payment date. MMDDYY. SecureNet Vault Payment ID. Must be enabled on your account. Process through Payment ID 2 if there is a problem with Payment ID. Payment plan ID, auto-generated by the system and given to the merchant at the time Plan is added. Please see PLAN_AB Object Summary Please see PLAN_AB Object Summary Plan start date. MMDDYY. Please make sure the date is on or after current date. Billing types offered include Recurring Billing, Installment Billing and Variable Billing. Set TYPE to one of the following: REC for recurring INS for installment VAR for variable
Object / 1 String / 6 String / 25 String / 25 Integer Object / 1 Array of PAYMENT_AB String / 6 String / 3
True False
True
False Required for Update only True True True True
</PLAN_AB>
Object Name
MERCHANT_KEY
39
Reporting API Services allow merchants to perform additional functionalities to their processing systems. Please note that data in the reporting services database is not updated in real-time, there is a 30-minute delay. The following services are available through the Reporting API: Transactions Services Retrieve Transactions Info by Batch ID Retrieve Current Transaction Info by Order ID. Retrieve Current Transaction Info by Transaction ID. Vault Services Allow to lookup Customer and Account information AutoBill Services: Allow to lookup AutoBill Account information Batch Services Allow the system to initiate a batch close on demand. To implement any of the above functionalities - create a program to consume one of the following Gateway services: For Batch and Transaction Services: URL for Production: https://gateway.securenet.com/api/data/transaction.svc URL for Certification and Test: https://certify.securenet.com/api/data/transaction.svc For SecureNet Vault and AutoBill Services: URL for Production: https://gateway.securenet.com/api/data/service.svc URL for Certification and Test: https://certify.securenet.com/api/data/service.svc Request Objects used for Reporting API Services have been described above and are the following:
Object Name MERCHANT_KEY PLAN_AB Description
Required for all Reporting API methods except GetABAccount. Required for GetABAccount method.
5.
Gateway Response
This section describes the response returned by the Gateway when a merchant server submits a transaction for processing. The response is an object that contains properties and response values showing the status of a transaction. The merchant server retrieves this data and determines the message to display to the end-user.
Type
Description
40
BATCHDATA BATCHDETAIL
Description
Superset and Response object for Batches created. Subset of Batch data with Individual Batch Details. Object is returned only if Batches are created and transactions exist to create a batch.
5.1. GATEWAYRESPONSE
5.1.1. GATEWAYRESPONSE Object Summary GATEWAYRESPONSE ABRESPONSE SCHEDULE
GATEWAYRESPONSE ABRESPONSE SCHEDULE TRANSACTIONRESPONSE CUSTOMER_BILL VAULTACCOUNTRESPONS E VAULTCUSTOMERRESPON SE
This object defines the information that will be sent by the Gateway as a response for all transactions. This object defines the information that will be sent by the Gateway as a response for AutoBill transactions. Array of PAYMENT_AB objects, containing individual payment information, like amount, payment id, installment date, etc. This object defines the information that will be sent by the Gateway as a response for all standard payment transactions, as well as transactions submitted through Reporting API Services. This object contains customers billing information, like billing address and telephone number, and is required for all E-Commerce transactions. This object defines the information that will be sent by the Gateway as a response for all SecureNet Vault Account transactions. This object defines the information that will be sent by the Gateway as a response for all SecureNet Vault Customer transactions.
Notes
<GATEWAYRESPONSE> <ABRESPONSE>
Please see Gateway Response Object Summary
41
5.1.2.1.
ABRESPONSE
This object defines the information that will be sent by the Gateway as a response for AutoBill transactions. Please note that all fields in the ABRESPONSE object are returned in a left-justified, space-filled format.
XML Tag
<ABRESPONSE>
<RESPONSE_CODE> <RESPONSE_REASON_CODE> <RESPONSE_REASON_TEXT> <RESPONSE_SUBCODE> <CUSTOMERID> <PAYMENTID> <PLANID> <SCHEDULE>
Notes
Transaction Response Code. See Appendix Code for providing more details about the result of the transaction. Brief description of the result, which corresponds with the Response Reason Code. Code used by the system for internal transaction tracking. Contains the customer ID associated with the transaction or record. Contains the Payment ID associated with the customer record. Echoed from PLAN_AB Echoed from PLAN_AB
Object / 1
</ABRESPONSE>
5.1.2.2.
TRANSACTIONRESPONSE
This object defines the information that will be sent by the Gateway as a response for all standard payment transactions, as well as transactions submitted through Reporting API Services. Please note that all fields in the TRANSACTIONRESPONSE object are returned in a left-justified, space-filled format.
XML Tag
Data Type /
Notes
42
Max Length
<TRANSACTIONRESPONSE> Decimal / 15 <ADDITIONALAMOUNT>
For Debit cards it will contain the surcharge for the transaction, if one has been setup on the Host. (If surcharge applies, it must be printed on the customer receipt). Applicable to Paymentech only. For EBT and Stored Value cards it will contain the remaining balance on the card.
<ADDITIONALDATA1>
String / 100
For Stored Value cards includes Previous Balance (15 characters long zero filled decimal number with explicit decimal point) followed by Cash Out Amount (15 characters long zero filled decimal number with explicit decimal point). Paymentech specific data -for Debit Transactions it will contain the Trace Number for the transaction. Optional data returned by the Host for Fleet Cards. (If data exists, it must be printed on the customer receipt as reference data). For EBT transactions it will contain the FNS # echoed from the ADDITIONALINFO field of the MERCHANT_KEY object.
<ADDITIONALDATA2>
String / 100
<ADDITIONALDATA3> <ADDITIONALDATA4> <ADDITIONALDATA5> <AUTHCODE> <AUTHORIZEDAMOUNT> <AVS_RESULT_CODE> <BANK_ACCOUNTNAME> <BANK_ACCOUNTTYPE> <BATCHID> <CARD_CODE_RESPONSE_CODE > <CARDHOLDER_FIRSTNAME> <CARDHOLDER_LASTNAME> <CARDLEVEL_RESULTS>
String / 100 String / 100 String / 100 String / 6 Decimal / 15 String / 2 String / 50 String / 8 String / 15 String / 2 String / 50 String / 50 String / 10
For EBT transactions it will contain the Voucher # echoed from the ADDITIONALINFO field of the CARD object. Future Use Future Use The six-digit alphanumeric authorization or approval code. Authorized Transaction Amount. Address Verification System Result Code. See Appendix Name of Account holder Echoed from TRANSACTION Default = 0, otherwise the Batch number of the transaction Response code from Credit Card Identification Code verification. See Appendix First Name of Card Holder(Track Data required) Last Name of Card Holder (Track Data required) Additional information about the credit card type. See Appendix
43
44
5.1.2.3.
VAULTACCOUNTRESPONSE
This object defines the information that will be sent by the Gateway as a response for all SecureNet Vault Account transactions. Please note that all fields in the VAULTACCOUNTRESPONSE object are returned in a leftjustified, space-filled format.
XML Tag
<VAULTACCOUNTRESPONSE> <RESPONSE_CODE> <RESPONSE_REASON_CODE> <RESPONSE_REASON_TEXT> <RESPONSE_SUBCODE> <ACCOUNTTYPE> <ADDITIONALDATA1> <ADDITIONALDATA2> <CARDTYPE> <COMPANY>
Notes
Response for SecureNet Vault Account Transactions. Transaction Response Code. See Appendix. Code for providing more details about the result of the transaction. Brief description of the result, which corresponds with the Response Reason Code. Code used by the system for internal transaction tracking. Echoed from ACCOUNT_VAULT Contains TRANSACTIONID, which is generated while verifying an account before adding/updating a Vault account information. Future Use Card Type Code is returned. See Appendix Echoed from ACCOUNT_VAULT
45
5.1.2.4.
VAULTCUSTOMERRESPONSE
Please note that all fields in the VAULTCUSTOMERRESPONSE object are returned in a left-justified, space-filled format.
XML Tag
<VAULTCUSTOMERRESPONSE>
<COMPANY> <CUSTOMERID> <FIRSTNAME> <LASTNAME> <RESPONSE_CODE> <RESPONSE_REASON_CODE> <RESPONSE_REASON_TEXT> <RESPONSE_SUBCODE> <TRANSACTIONDATETIME>
Notes
Echoed from CUSTOMER_VAULT Contains the customer ID associated with the transaction or record. Echoed from CUSTOMER_VAULT Echoed from CUSTOMER_VAULT Transaction Response Code. See Appendix Code for providing more details about the result of the transaction. Brief description of the result, which corresponds with the Response Reason Code. Code used by the system for internal transaction tracking. Transaction date and time as recorded in the Gateway according to merchant time zone. (MMDDYYYYHHMMSS)
</VAULTCUSTOMERRESPONSE>
46
5.2.
5.2.1.
BATCHDATA BATCHDETAILS
This object defines the information that can be submitted to the Gateway for Settlement Transactions. Array of BATCHDETAIL objects, containing individual batch information, like Batch ID created on Batch Close, number of transactions in a batch, etc.
5.2.2.
This section details high-level BATCHDATA Object specification. Descriptions, rules and notes for each object of BATCHDATA are detailed below.
5.2.2.1.
This object defines the information that can be submitted to the Gateway for Settlement Transactions.
XML Tag
<BATCHDATA> <BATCHDETAILS> </BATCHDATA>
Notes
5.2.2.2.
BATCHDETAIL
This object containing individual batch information, like Batch ID created on Batch Close, number of transactions in a batch, etc.
XML Tag
Notes
47
5.2.3.
Notes
48
6.
Once you create and populate a data object (ex. TRANSACTION, TRANSACTION_VAULT, PLAN_AB) pass it into the desired Gateway Method.
6.1.
Description
This method accepts TRANSACTION as input parameter and processes non Vault Transactions. Set TRANSACTION_SERVICE value to 0. Input parameter: TRANSACTION Output parameter: GATEWAYRESPONSE
ProcessTransaction
ProcessTransaction
This is a method to process transaction on-demand for the stored Customer Record. TRANSACTION_SERVICE property value inside TRANSACTION object should be set to 1. MERCHANT_KEY should be supplied within TRANSACTION object. No card/check information should be provided in the CARD/CHECK object. Input parameter: TRANSACTION Output parameter: GATEWAYRESPONSE
ProcessTransaction
This is a method to process transaction on-demand for the stored Customer Record. TRANSACTION_SERVICE property value inside TRANSACTION object should be set to 2. MERCHANT_KEY should be supplied within TRANSACTION object and secondary merchant key should be supplied inside SECONDARY_MERCHANT_KEY property of TRANSACTION object. No card/check information should be provided in the CARD/CHECK object. Input parameter: TRANSACTION Output parameter: GATEWAYRESPONSE
49
Description
This method accepts TRANSACTION_VAULT as input parameter. The ACTIONCODE inside OPERATIONPARAMETERS object should be set to 1 for Add operation. All account information to be added should be passed inside ACCOUNT_VAULT object and MERCHANT_KEY inside TRANSACTION_VAULT object. Input parameter: TRANSACTION_VAULT Output parameter: GATEWAYRESPONSE
ProcessAccount
ProcessAccount
This Method accepts TRANSACTION_VAULT as input parameter. The ACTIONCODE inside OPERATIONPARAMETERS object should be set to 2 for Update operation. PAYMENTID and CUSTOMERID should be passed inside ACCOUNT_VAULT object and MERCHANT_KEY inside TRANSACTION_VAULT object. Input parameter: TRANSACTION_VAULT Output parameter: GATEWAYRESPONSE
ProcessAccount
This method accepts TRANSACTION_VAULT as input parameter. The ACTIONCODE inside OPERATIONPARAMETERS object should be set to 3 for Delete operation. PAYMENTID and CUSTOMERID should be passed inside ACCOUNT_VAULT object and MERCHANT_KEY inside TRANSACTION_VAULT object. Note: if you are deleting last account of the customer - the customer will be deleted as well. Input parameter: TRANSACTION_VAULT Output parameter: GATEWAYRESPONSE
ProcessCustomer
This method accepts TRANSACTION_VAULT as input parameter. The ACTIONCODE inside OPERATIONPARAMETERS object should be set to 1 for Add operation. All customer information to be added should be passed inside CUSTOMER_VAULT object and MERCHANT_KEY inside TRANSACTION_VAULT object. Input parameter: TRANSACTION_VAULT Output parameter: GATEWAYRESPONSE
50
Description
This method accepts TRANSACTION_VAULT as input parameter. The ACTIONCODE inside OPERATIONPARAMETERS object should be set to 2 for Update operation. CUSTOMERID should be passed inside ACCOUNT_VAULT and MERCHANT_KEY inside TRANSACTION_VAULT object. Input parameter: TRANSACTION_VAULT Output parameter: GATEWAYRESPONSE
ProcessCustomer
ProcessCustomer
This method accepts TRANSACTION_VAULT as input parameter. The ACTIONCODE inside OPERATIONPARAMETERS object should be set to 3 for Delete operation. CUSTOMERID should be passed inside CUSTOMER_VAULT object and MERCHANT_KEY inside TRANSACTION_VAULT object. Input parameter: TRANSACTION_VAULT Output parameter: GATEWAYRESPONSE
ProcessCustomerAndAccount
This method accepts TRANSACTION_VAULT as input parameter. The ACTIONCODE inside OPERATIONPARAMETERS object should be set to 1 for Add operation. All customer information to be added should be passed inside CUSTOMER_VAULT object, account information inside ACCOUNT_VAULT object and MERCHANT_KEY inside TRANSACTION_VAULT object. Input parameter: TRANSACTION_VAULT Output parameter: GATEWAYRESPONSE
ProcessCustomerAndAccount
This method accepts TRANSACTION_VAULT as input parameter. The ACTIONCODE inside OPERATIONPARAMETERS object should be set to 2 for Update operation. All customer information to be added should be passed inside CUSTOMER_VAULT object, account information inside ACCOUNT_VAULT object and MERCHANT_KEY inside TRANSACTION_VAULT object. Input parameter: TRANSACTION_VAULT Output parameter: GATEWAYRESPONSE
51
Description
This is a method to process transaction on-demand and to store a new Customer and account in Vault. TRANSACTION_SERVICE property value inside TRANSACTION object should be set to 3. MERCHANT_KEY should be supplied within TRANSACTION_VAULT object, customer information to be added should be supplied inside CUSTOMER_VAULT, account information to be added should be supplied inside ACCOUNT_VAULT and transaction information except MERCHANT_KEY should be supplied inside TRANSACTION object. Input parameter: TRANSACTION_VAULT Output parameter: GATEWAYRESPONSE
ProcessVaultTransaction
CopyVaultAccount
This method allows to copy an existing Vault account from one customer to another and from one SecureNet ID to another. Input parameters: SOURCE_MERCHANT_KEY (MERCHANT_KEY), SOURCE_ACCOUNT_VAULT (ACCOUNT_VAULT), TARGET_MERCHANT_KEY (MERCHANT_KEY), TARGET_ACCOUNT_VAULT (ACCOUNT_VAULT), CREATE_CUSTOMER (integer, 0 do not create, 1 - create), CHANGE_ACCOUNT_INFO_TO_TARGET (integer, 0 do not change target account, 1 change target account). Output parameter: GATEWAYRESPONSE
Description
Use this method to add an AutoBill Account. Input parameter: PLAN_AB Output parameter: GATEWAYRESPONSE
AddABAAccount
UpdateABAccount
Use this method to update an AutoBill Account. Input parameter: PLAN_AB Output parameter: GATEWAYRESPONSE
UpdateABSchedule
Use this method to update an AutoBill Schedule. Input parameter: PLAN_AB Output parameter: GATEWAYRESPONSE
52
6.1.4. CloseBatch
Description
This method is for closing a batch. Input parameter: MERCHANT_KEY Output parameter: BATCHDATA
6.2.
Reporting API methods for Batch and Transaction Services, available through: https://certify.securenet.com/api/data/transaction.svc or https://gateway.securenet.com/api/data/transaction.svc
Method Name Description
Method to retrieve the TRANSACTIONRESPONSE data for a particular Batch. Input parameters: MERCHANT_KEY and BATCHID. Output parameter: Array of TRANSACTIONRESPONSE objects. a. b. c. If BATCHID =0 approved transactions from the unclosed batch will be returned If BATCHID = 1 transactions for the last closed batch along with original batch id will be returned For all other values in BATCHID, transactions specific to that particular batch will be returned
GetBatchTransactions
GetTransactionByOrderID
Method to retrieve the TRANSACTIONRESPONSE data by Order ID when Transaction ID is not available. Transactions with basic validation errors are not stored and returned in this method. Input parameters: MERCHANT_KEY and ORDERID. Output parameter: TRANSACTIONRESPONSE
GetTransactionByTransactionID
Method to retrieve the TRANSACTIONRESPONSE data by Transaction ID. Input parameters: MERCHANT_KEY and TRANSACTIONID. Output parameter: TRANSACTIONRESPONSE
GetCurrentBatchID
This method will return the last closed batch id. Input parameter: MERCHANT_KEY Output parameter: BATCHID
GetTransactions
Method to retrieve transaction data for transactions processed during a specific period of time.
53
6.3.
Reporting API methods for SecureNet Vault and AutoBill Services, available through: https://certify.securenet.com/api/data/service.svc or or https://gateway.securenet.com/api/data/service.svc
Method Name Description
Method to retrieve an AutoBill account. Input parameters: PLAN_AB Output parameter: PLAN_AB
GetABAccount
GetABAccounts
Method to retrieve an AutoBill account. Input parameters: MERCHANT_KEY and CustomerID Output parameter: PLAN_AB
GetVaultCustomers
Method to retrieve a Vault Customer. Input parameters: MERCHANT_KEY and CustomerID Output parameter: CUSTOMER_VAULT
GetVaultAccountByCustomer
Method to retrieve Vault Accounts by Merchant Key and Customer ID. Input parameters: MERCHANT_KEY and CustomerID Output parameter: Array of ACCOUNT_VAULT objects Method to retrieve a Vault Account Input parameters: MERCHANT_KEY, CustomerID, and PaymentID Output parameter: ACCOUNT_VAULT Method to retrieve Vault Accounts by Merchant Key and Card Number. Input parameters: MERCHANT_KEY and CardNumber Output parameter: Array of ACCOUNT_VAULT objects
GetVaultAccount GetVaultRecordByCardNo
54
7.
Appendix
7.1. ACDI
Account Duplicate Check Indicator: Indicates whether duplicate account exists.
0 Checks for Duplicate Card Number for specified Customer ID 1 Checks for Duplicate Card Number and Expiration Date for specified Customer ID 2 Checks for Duplicate Card Number for All Customer IDs for specified SecureNet ID 3 Checks for Duplicate Card Number for All Customer IDs for specified Group ID Note: For ACCOUNT_VAULT only. Set to 0 by default.
7.2. AVS_RESULT_CODE
Indicates the result of Address Verification System (AVS) checks. The Address Verification System (AVS) helps merchants detect suspicious transaction activity. To use this system, the merchant must submit the customers credit card billing address (numeric value only) to the Gateway for validation. This information is submitted by the Gateway to the financial institutions. The financial institutions compare the submitted address with the billing address on file for that particular credit card and return an AVS response code to the Gateway. The Gateway includes this code in the response back to the merchant. AVS Code
0 A B C D E G I M
Description
AVS data not provided Street address matches, Zip Code does not Postal code not verified due to incompatible formats Street address and postal code not verified due to incompatible formats Street address and postal code match AVS data is invalid Non-U.S. issuing bank does not support AVS Address information not verified by international issuer Customer Name, Billing Address and Zip match
55
Neither street address nor Zip code match Street address not verified due to incompatible format Retry: issuer's system unavailable or timed-out U.S. issuing bank does not support AVS Street address does not match, but 9-digit Zip code matches Address information is unavailable 9-digit Zip matches, street address does not Street address and 9-digit Zip match Street address and 5-digit Zip match 5-digit Zip matches, street address does not
Note:
It is recommended that merchants enable some level of Address Verification to avoid non-qualified transaction surcharges that can be levied by merchant banks and merchant service providers.
7.3. CARD_CODE_RESPONSE_CODE
(CVV2/CVC2/CID) The Credit Card Identification Code, or Card Code, is a three- or four-digit security code that is printed on the back of credit cards in reverse italics in the cards signature panel (or on the front for American Express cards). The merchant can collect this information from the customer and submit the data to the Gateway. The Gateway will pass this information to the financial institution along with the credit card number. The financial institution will determine if the value matches the value on file for that credit card and return a code indicating whether the comparison failed or succeeded. The Gateway passes back this response code to the merchant. Code
M N P S U Y
Description
Match No match Not processed Data not present Issuer unable to process request Card Code Matches (Amex Only)
7.4. CARDLEVEL_RESULTS
Provides additional information on card type: Code
A B C D G I K M Q R S
Description
Visa Traditional Visa Traditional Rewards Visa Signature Visa Infinite Visa Business Card Visa Commerce Visa Corporate Card MasterCard/EuroCard and Diners Private Label Proprietary Card Visa Purchasing Card
56
7.5. CAVV_RESPONSE_CODE
Indicates the results of Cardholder Authentication Verification Value (CAVV) verification. Code
Blank 0 1 2 3 4 5 6 7 8 9 CAVV not validated CAVV not validated because erroneous data was submitted CAVV failed validation CAVV passed validation CAVV validation could not be performed; issuer attempt incomplete CAVV validation could not be performed; issuer system error Reserved for future use Reserved for future use CAVV attempt failed validation issuer available (U.S.-issued card/non-U.S acquirer) CAVV attempt passed validation issuer available (U.S.-issued card/non-U.S. acquirer) CAVV attempt failed validation issuer unavailable (U.S.-issued card/non-U.S. acquirer)
Description
57
Response Description
e-Check American Express Debit Card Diners Club Discover Electronic Benefits Transfer Gas Card (Fuelman) JCB MasterCard MasterCard Fleet PIN-less Debit Stored Value Card Visa Visa Fleet Voyager Wright Express (WEX) Card Check 21
7.7. DCI
58
SecureNet Gateway Implementation Guide 4.1.1. Duplicate Transaction Indicator must be activated in Tools tab of the Virtual Terminal: "Duplicate Transaction Lockout Settings". Duplicates are evaluated against AMOUNT, CARDNUMBER, and, optionally, a user defined field (like Customer ID, Invoice Number or one of the UDFs), and within a specified time frame of only APPROVED transactions, unless otherwise noted. If a duplicate transaction is found the new transaction is not reprocessed. 0 1 2 3
No duplicate checking will be done. If evaluation of the above conditions results in a duplicate transaction an exception code will be returned. If evaluation of the above conditions results in a duplicate transaction the original transaction response is returned with RESPONSE_REASON_TEXT = Approved. Identical to 1 however ORDERID is not evaluated.
Note: ORDERID will be evaluated and responses sent accordingly AFTER Duplicate check is evaluated and no duplicate is found.
7.8.
INDUSTRYSPECIFICDATA
For E-commerce transactions: P Physical goods D Digital goods For MO/TO transactions: 1 Single purchase transaction (AVS is required) 2 Recurring billing transaction (do not submit AVS) 3 Installment transaction For Retail transactions leave blank. Note: If TRANSACTION_SERVICE = 1 or 2, INDUSTRYSPECIFICDATA will be set to 1 by default, unless transaction request specifies otherwise.
7.9. METHOD
Method indicates the method of payment for the transaction being sent to the system and can be one of the following: Code Description
CC DB ECHECK CHECK21 PD SV EBT Credit Card Debit Electronic Check Electronic Check PIN-less Debit Stored Value Electronic Benefits Transfer
7.10. ORDERID
59
SecureNet Gateway Implementation Guide 4.1.1. A client generated unique ID for each transaction submitted to the Gateway. ORDERID must be unique to the SecureNet ID, however the uniqueness is only evaluated for APPROVED transactions and only for the last 30 days. If a transaction results in a decline that ORDERID may be used again. The ORDERID is used as a default method to avoid processing duplicate transactions. The ORDERID is not verified for transaction types such as VOID and PRIOR_AUTH_CAPTURE. ORDERID is limited to 25 characters; for example CUSTOMERID MMddyyyyHHmmss.
7.11. REF_TRANSID
It is possible to re-run a transaction, i.e. retrieve credit card information from a previously approved or declined transaction and use this information to submit another transaction. If you set REF_TRANSID to TRANSACTIONID of the previously approved or declined transaction, you are not required to send a credit card number, the number from the transaction referenced by REF_TRANSID will be used. When re-running a transaction, please follow the instructions below: 1. REF_TRANSID should be present. CARDNUMBER, ACCOUNTNUM, TRACKDATA, or MICRDATA should not be present. 2. REF_TRANSID can be from a previously approved or declined transaction. 3. REF_TRANSID should not be older than 90 days for the same SecureNet ID. 4. Re-running a transaction is available for the following transaction codes: AUTH_CAPTURE, AUTH_ONLY, CAPTURE_ONLY, FORCE_CREDIT, PARTIAL_AUTH_ONLY, PARTIAL_AUTH_CAPTURE, and VERIFICATION. 5. Re-running a transaction cannot be done for a Card-Present transaction, i.e. INDUSTRYSPECIFICDATA in TRANSACTION object should not be empty or null, it should be set to 1, 2, 3, P, or D.
7.12. RESPONSE_CODE
Indicates the result of the transaction: 1 Approved 2 Declined 3 Error / Invalid Data
7.13. SECCODE
The Standard Entry Class (SEC) code is a three letter code that identifies the nature of the ACH entry. Here are some common SEC codes: Code
ARC BOC
Description
Accounts Receivable Entries. A check received by a merchant through mail or drop box and presented as an ACH entry. Back Office Conversion. A check that is converted from paper to an electronic debit at a centralized location and presented as an ACH entry.
60
TEL
WEB
7.14.
CODE:
CODE
0000
AUTH_ONLY
0001
PARTIAL_AUTH_ONLY
61
Transaction Type
AUTH_CAPTURE
Description
Identical to AUTH_ONLY, however on approval the transaction will be picked up for settlement. Available for: E-checks, Credit Cards, Check Cards, PIN Debit, PIN-less Debit, and Prepaid Cards.
0101
PARTIAL_AUTH_CAPTURE
Identical to PARTIAL_AUTH_ONLY, however on approval the transaction will be picked up for settlement. Available for: Prepaid Cards.
0200
PRIOR_AUTH_CAPTURE
This transaction is used to request settlement for a transaction that was previously submitted as an AUTH_ONLY. The Gateway will accept this transaction and initiate settlement if the following conditions are met: The transaction is submitted with the ID of the original authorization-only transaction to be settled. The transaction ID is valid and the system has a record of the original authorization-only transaction. The original transaction referred to is not already settled, expired, or voided. The amount being requested for settlement is less than or equal to the original authorized amount.
If no amount is submitted in this transaction, the Gateway will initiate settlement for the amount originally authorized. Note: If extended line item, tax, freight, and/or duty information was submitted with the original transaction, adjusted information may be submitted in the event that the transaction amount changed. If no adjusted line item, tax, freight, and/or duty information is submitted, the information submitted with the original transaction will apply. Available for: E-checks*, Credit Cards, Check Cards, and Prepaid Cards. * Future use
0300
CAPTURE_ONLY
This is a request to settle a transaction that was not submitted for authorization through the payment Gateway. The Gateway will accept this transaction if an authorization code is submitted. AUTHCODE is a required field for CAPTURE_ONLY transactions. Available for: Credit Cards, Check Cards, and Prepaid Cards.
62
Transaction Type
Description
This action cancels a previous transaction such that it is not sent for settlement. It can be performed on the following transaction types: CREDIT, AUTH_CAPTURE, CAPTURE_ONLY, and AUTH_ONLY. The transaction will be accepted by the Gateway if the following conditions are met: The transaction is submitted with the ID of the original transaction to be voided (REF_TRANSID). The Gateway has a record of the transaction referenced by the ID. The transaction has not been sent for settlement.
Available for: E-checks, Credit Cards, Check Cards, and Prepaid Cards All platforms
0401
PARTIAL_VOID
This action will reduce the amount of a previous unsettled transaction. The transaction is submitted with the ID of the original transaction to be voided (in REF_TRANSID field). The Gateway has a record of the transaction referenced by REF_TRANSID. The transaction has not been sent for settlement.
Available for: E-checks, Credit Cards, Check Cards, and Prepaid Cards. MOTO and E-Commerce merchants only Nashville platform only, TSYS in pipeline.
0402
VOID_BY_ORDERID
This action cancels a previous transaction such that it is not sent for settlement. It can be performed on unsettled transactions of the following types: AUTH_ONLY, AUTH_CAPTURE, PRIOR_AUTH_CAPTURE, CREDIT_AUTHONLY, and FORCE_CREDIT. The transaction will be accepted by the Gateway if the following conditions are met: The transaction is submitted with the ORDERID of the original transaction to be voided (in ORDERID field). The Gateway has a record of the transaction referenced by the ORDERID. The transaction has not been sent for settlement.
Available for: E-checks, Credit Cards, Check Cards, and Prepaid Cards All platforms
63
Transaction Type
Description
This transaction is also referred to as a Refund and indicates to the Gateway that money should flow from the merchant to the customer. The Gateway will accept a credit (refund) request if the transaction submitted meets the following conditions: The transaction is submitted with the ID of the original transaction against which the credit is being issued (REF_TRANSID). The transaction ID is valid and the system has a record of the original transaction. The original transaction has been settled. The sum submitted in the credit transaction and all credits submitted against the original transaction is less than or equal to the original transaction amount. The card number (or the last four digits thereof) submitted with the credit transaction matches the card number of the original transaction. The credit transaction is submitted within 120 days of the settlement date and time of the original transaction.
Available for: E-checks, Credit Cards, Check Cards, and Prepaid Cards.
0501
CREDIT_AUTHONLY
Similar to CREDIT but the transaction is not eligible to be captured until it is marked by Capture using CREDIT_PRIORAUTHCAPTURE Available for: Credit Cards, Check Cards, and Prepaid Cards.
0502
CREDIT_PRIORAUTHCAPTURE
Capture CREDIT_AUTHONLY transaction and mark for Capture and Settlement Available for: Credit Cards, Check Cards, and Prepaid Cards.
0600
FORCE_CREDIT
Similar to CREDIT used for Unlinked credits when previous Authorized Transaction is not Available. This feature has to be enabled by Merchant Service Provider on the Gateway Available for: E-checks, Credit Cards, Check Cards, and Prepaid Cards.
0601
FORCE_CREDIT_AUTHONLY
Similar to FORCE_CREDIT but the transaction is not eligible to be captured until it is marked by Capture using FORCE_CREDIT_PRIORAUTHCAPTURE Available for: Credit Cards, Check Cards, and Prepaid Cards.
0602
FORCE_CREDIT_PRIORAUTHCAPTURE
Capture FORCE_CREDIT_AUTHONLY transaction and mark for Capture and Settlement Available for: Credit Cards, Check Cards, and Prepaid Cards.
0700
VERIFICATION
Run Transaction Verification on Credit Card or Bank Account with zero dollar amount. Available for: Nashville , TSYS, and SecureNet FrontEnd platforms. Credit Cards and E-checks.
64
Transaction Type
AUTH_INCREMENT
Description
This action performs an incremental authorization on a previously authorized transaction (i.e., AUTH_ONLY). Only applicable to Visa transactions and only if the terminal has been set up as LODGING or AUTO RENTAL industry type. The transaction will be accepted by the Gateway if the following conditions are met: The transaction is submitted with the ID of the transaction. The Gateway has a record of the transaction referenced by the ID. The transaction has not been sent for settlement.
0900
ISSUE
This action issues a new card or adds funds to an already activated stored value card; also used for refunds to a stored value card. Will be treated as credit to the card holder. Available for: Pre-paid Cards only Paymentech platform only
0901
ACTIVATE
This action activates a new card; only necessary if the stored value card is set to require activation. Available for: Pre-paid Cards only Paymentech platform only
0902
REDEEM
This action charges a card; the amount has to be within the available balance. Available for: Pre-paid Cards only Paymentech platform only
0903
REDEEM_PARTIAL
This action charges a card; the card will be approved only for the available balance on the card if the transaction is approved. Available for: Pre-paid Cards only Paymentech platform only
0904
DEACTIVATE
This action de-activates an activated card; amount should be specified as zero. Available for: Pre-paid Cards only Paymentech platform only
0905
REACTIVATE
This action re-activates a de-activated card. Available for: Pre-paid Cards only Paymentech platform only
65
Transaction Type
INQUIRY_BALANCE
Description
This action checks the available balance on the stored value card; amount should be specified as zero. The available balance on the gift card will be returned in the TRANSACTIONAMOUNT field in the TRANSACTIONRESPONSE object. Available for: Pre-paid Cards only Paymentech platform only
7.15.
SOFTDESCRIPTOR
Displays a description in addition to the merchants DBA. This is currently restricted to credit card transactions only. Contact Support to use this field. Maximum length is 25 characters. The SOFTDESCRIPTOR field should contain the Doing Business As (DBA) name of the merchant and be the name most recognizable to the cardholder. The SOFTDESCRIPTOR field must not be used as a description field in lieu of the required, recognizable name. In addition, the SOFTDESCRIPTOR field may contain a merchandise description, order number, reference number, or other information that will further identify the transaction and assist cardholder recognition. If additional information is used, the SOFTDESCRIPTOR field must conform to one of the following formats: Option 1: Field Position Pos. 13: Pos. 4: Pos. 525: Pos. 17: Pos. 8: Pos. 925: Pos. 112: Pos. 13: Pos. 1425: Data Merchant name or abbreviation Asterisk (*) Descriptive Information Merchant name or abbreviation Asterisk (*) Descriptive Information Merchant name or abbreviation Asterisk (*) Descriptive Information
Option 2:
Option 3:
66
7.16.
TRACKDATA
This field contains information encoded from a valid magnetic stripe and includes data such as Primary Account Number and Expiration Date. Unaltered Track Data must be forwarded intact. On Debit Card and EBT (Not Voucher Clear) transactions, this field is mandatory (with the exception of Debit Card PIN-Less transactions, which are entered manually). Track Data may contain Track 1 and/or Track 2 data. Track 2 data is required for Pin Debit transactions. Accurate Track 1 or Track 2 data is required to receive Card Present rates. Authorization requests containing altered Track 1 or Track 2 data will be flagged as NOT COMPLIANT by Visa and MasterCard, resulting in the merchant paying the highest transaction rate and forfeiture of chargeback protection. Both associations monitor noncompliant transactions and will assess fines and penalties to merchants that are not in compliance. The POS device or software must perform the following operations on Track read data before it can be used in an authorization request message: The longitudinal redundancy checks (LRC) must be calculated for the data read from the Track and compared to the LRC read from the Track. The Track data is assumed to be read without errors when no character parity errors are detected and the calculated and read LRCs match. The starting sentinel, ending sentinel, and LRC are discarded. The character codes read from the magnetic stripe must be converted from the encoded character set to the set used for the authorization request message. The characters encoded on Track 1 are six bit plus parity codes and the characters encoded on Track 2 are four bit plus parity codes, with the character set used for the request message defined as seven bit plus parity code. All characters read from a Track must be converted to the request message character set and transmitted as part of the request. The converted Track data cannot be modified by adding or deleting non-framing characters and must be a one for one representation of the characters read from the Track.
Note: You only need to submit Track 1 or Track 2 data. If both tracks are sent by the POS application, the Gateway will use the Track 1 information. If neither Track 1 nor Track 2 data is submitted, but x_card_num and x_exp_date are submitted, the Card Present transaction rate might be downgraded.
Track 1 Data
This is a variable length field with a maximum data length of 76 characters. The Track 1 data read from the cardholders card is checked for parity and LRC errors and then converted from the six-bit characters encoded on the card to seven bit characters as defined in ANSI X3.4. As part of the conversion, the terminal must remove the framing characters (start sentinel, end sentinel, and LRC characters). The separators must be converted to either an ASCII ^ (HEX 5E) or ASCII <US> (HEX 1F) characters. The entire unaltered Track, excluding framing characters, must be provided in the authorization request message or an error condition will result.
67
Track 1 can be encoded with up to 79 characters as shown below: SS FC PAN FS NAME FS DATE
SVC CD
DISCRETIONARY DATA
ES
LRC
LEGEND:
Field
SS FC PAN FS NAME FS DATE SVC CD DISCRETIONARY DATA ES LRC
Description
Start Sentinel Format Code (B for credit cards) Primary Account Number Field Separator Card Holder Name Field Separator Expiration Date (YYMM) Service Code Optional Issuer Data End Sentinel Longitudinal Redundancy Check Total Cannot exceed 79 bytes
Length
1 1 19 max 1 2-25 max 1 4 3 Variable 1 1 79
Format
% Alphanumeric Numeric ^ Alphanumeric ^ Numeric Numeric Alphanumeric ?
Track 2 Data
This is a variable length field with a maximum data length of 37 characters. The Track 2 data read from the cardholders card is checked for parity and LRC errors and then converted from the four-bit characters encoded on the card to seven bit characters as defined in ANSI X3.4. As part of the conversion, the terminal must remove the start sentinel, end sentinel, and LRC characters. The separators must be converted to either an ASCII = (HEX 3D) or ASCII D (HEX 44) characters. The entire UNALTERED Track (excluding framing characters) must be provided in the authorization request message or an error message will be generated. Track 2 Data can be encoded with up to 40 characters as shown below: SS PAN FS DATE SVC DISCRETIONARY ES CD DATA LEGEND:
LRC
Field
SS PAN FS DATE SVC CD DISCRETIONARY DATA ES LRC
Description
Start Sentinel Primary Account Number Field Separator Expiration Date (YYMM) Service Code Optional Issuer Data End Sentinel Longitudinal Redundancy Check Total Cannot exceed 40 bytes
Length
1 19 max 1 4 3 Variable 1 1 40
Format
; Numeric = Numeric Numeric Alphanumeric 0F Hex
68
7.17.
TRANSACTION_SERVICE
[Default] 0 Regular Transaction [SecureNet Vault Transactions] 1 Process Transaction using Customer ID 2 Process Transaction using SECONDARY_MERCHANT_KEY 3 Process Transaction Add Customer and Account
7.18.
*Product Code 051: Discount is a negative amount **If tax is submitted as a Product Code, it must ALSO be submitted in the purchasing card data fields. Product Amounts can be treated as negative values if they have been setup as such with the host. When submitted, the total of the positive product amounts minus the negative product amounts must equal the transaction amount. Transaction amounts must cross foot: a) Sum of all Product Amounts must equal Transaction Amount.
69
7.19.
7.19.1. 7.19.1.1.
Developer Notes
Sample Code Standard Payment Transaction - C#
Assuming the developer has service reference to the Gateway named GatewayService
using ProjectNamespace.GatewayService; private void ProcessGatewayTransaction() { //First define the primary objects that will be needed GatewayClient Client = new GatewayClient("BasicHttpBinding_IGateway"); TRANSACTION oT = new TRANSACTION(); GATEWAYRESPONSE oGr = new GATEWAYRESPONSE(); //All Gateway Transactions require a MERCHANT_KEY oT.MERCHANT_KEY = new MERCHANT_KEY(); //Create an instance of a payment object oT.CARD = new CARD(); //OR oT.CHECK = new CHECK(); //Add some additional objects to the transaction oT.CUSTOMER_BILL = new CUSTOMER_BILL(); oT.USERDEFINED = new USERDEFINED(); //Assign some values oT.MERCHANT_KEY.SECURENETID = 1234567; oT.MERCHANT_KEY.SECUREKEY = "OurSecureKey"; oT.CARD.CARDNUMBER = "4111111111111111"; oT.CARD.CARDCODE = "123"; oT.CARD.EXPDATE = "1212"; //MMYY oT.CUSTOMER_BILL.FIRSTNAME = "Customer"; oT.CUSTOMER_BILL.LASTNAME = "Last Name"; oT.USERDEFINED.UD1 = "Userdefined Value"; oT.USERDEFINED.UD2 = "There are 50 of these to use"; oT.AMOUNT = 1; oT.TEST = "FALSE"; // When testing, use TRUE oT.METHOD = "CC"; // We'll use a credit card oT.ORDERID = DateTime.Now.ToString("MMddyyhhmmss"); // Define a unique id for each transaction oT.CODE = "0000"; // An Auth only transaction //Process the Transaction oGr = Client.ProcessTransaction(oT); //Close the Client
70
7.19.1.2.
using System; using VaultCodeSample.GatewayService; namespace VaultCodeSample { class Program { GatewayService.GatewayClient gsClient = new GatewayService.GatewayClient("BasicHttpBinding_IGateway"); // please use basicHttpbinding for SOAP for performance reason string customerId = "Test" + DateTime.Now.ToString("MMddyyhhmm"); static void Main(string[] args) { Console.WriteLine(" Type and Enter for Vault Transaction\n 1. ProcessVaultTransactionAndAddCustomerAccount \n 2." + "ProcessVaultTransactionByCustomerID \n 3. ProcessVaultAccount\n 4. ProcessTransactionbySecondarySecurenetID"); int s = Convert.ToInt32(Console.ReadLine()); Program p = new Program(); switch (s) { case 1: p.ProcessVaultTransactionAndAddCustomerAccount(); Console.WriteLine(" Request Successful"); break; case 2: p.ProcessVaultTransactionByCustomerID(); Console.WriteLine(" Request Successful"); break; case 3: p.ProcessVaultAccount(); Console.WriteLine(" Request Successful"); break; case 4: p.ProcessVaultTransactionBySecondarySecurenetId(); Console.WriteLine(" Request Successful"); break; default: Console.WriteLine(" Selected item is not valid"); break; } Console.Read();
71
} public void ProcessVaultTransactionAndAddCustomerAccount() { try { Console.WriteLine(" Running ProcessVaultTransactionAndAddCustomerAccount \n"); OPERATIONPARAMETERS operationParameters = new OPERATIONPARAMETERS(); operationParameters.ACTIONCODE = 1; operationParameters.ADD_IF_DECLINED = 0; var transaction = GetTransactionObject(); var transactionVault = new TRANSACTION_VAULT(); transactionVault.TRANSACTION = transaction; transactionVault.TRANSACTION.TRANSACTION_SERVICE = 3; transactionVault.ACCOUNT_VAULT = GetAccountVault(); transactionVault.CUSTOMER_VAULT = GetCustomerVault(); transactionVault.MERCHANT_KEY = new MERCHANT_KEY(); transactionVault.OPERATIONPARAMETERS = operationParameters; transactionVault.MERCHANT_KEY.SECUREKEY = "cWpQuPz0lI3p"; transactionVault.MERCHANT_KEY.SECURENETID = 1000093; var gatewayResponse = gsClient.ProcessVaultTransaction(transactionVault); Console.WriteLine(" Method |Payment ID | Customer ID|Response \n"); Console.WriteLine(" {0} | {1}| {2}| {3} \n", gatewayResponse.VAULTACCOUNTRESPONSE.METHOD, gatewayResponse.VAULTACCOUNTRESPONSE.PAYMENTID, gatewayResponse.VAULTCUSTOMERRESPONSE.CUSTOMERID, gatewayResponse.VAULTACCOUNTRESPONSE.RESPONSE_REASON_TEXT); } catch (Exception ex) { Console.WriteLine(ex.Message); } } private void ProcessVaultTransactionByCustomerID() { try { var transactionVault = new TRANSACTION_VAULT(); TRANSACTION transaction = GetTransactionObject(); transaction.TRANSACTION_SERVICE = 1; transaction.CUSTOMERID = "CID1"; // Please increase this number to the next one (e.g. CID2) or provide a unique number each time you run to get an approval transaction.CUSTOMER_BILL = GetVaultCustomerCustomerBill(); GatewayService.GatewayClient gatewayClient = new GatewayClient("wsBinding"); var gatewayResponse = gatewayClient.ProcessTransaction(transaction);
72
73
74
private GatewayService.CUSTOMER_VAULT GetCustomerVault() { var customerVault = new CUSTOMER_VAULT(); customerVault.CSDI = 0; customerVault.CUSTOMERID = "CID1"; // Please increase this number to the next one (e.g. CID2) or provide a unique number each time you run to get an approval customerVault.NOTES = "Notes"; customerVault.CUSTOMER_BILL = GetVaultCustomerCustomerBill(); return customerVault; } private GatewayService.CUSTOMER_BILL GetVaultCustomerCustomerBill() { GatewayService.CUSTOMER_BILL customerBill = new GatewayService.CUSTOMER_BILL(); customerBill.ADDRESS = "tbCVAddress"; customerBill.CITY = "CVCity"; customerBill.COMPANY = "CVCompany"; customerBill.COUNTRY = "CVCountry"; customerBill.EMAIL = "[email protected]"; customerBill.EMAILRECEIPT = "TRUE"; customerBill.FIRSTNAME = "FirstName"; customerBill.LASTNAME = "LastName"; customerBill.PHONE = "3013500000"; customerBill.STATE = "MD"; customerBill.ZIP = "20850"; return customerBill; } private TRANSACTION_VAULT GetTransactionVault() { TRANSACTION_VAULT transactionVault = new TRANSACTION_VAULT(); transactionVault.ACCOUNT_VAULT = GetAccountVault(); transactionVault.CUSTOMER_VAULT = GetCustomerVault(); transactionVault.TRANSACTION = GetTransactionObject(); return transactionVault; } private GatewayService.ACCOUNT_VAULT GetAccountVault() { ACCOUNT_VAULT accountVault = new ACCOUNT_VAULT(); GatewayService.CARD card = new CARD(); card.CARDNUMBER = "4111111111111111"; card.EXPDATE = "1212"; accountVault.ACDI = 0; // other values 1,2 0r 3 accountVault.CUSTOMERID = "CID1";
75
76
7.19.2.
Gateway URL, SecureNet ID, SecureKey and test mode should be designed to be configurable by the developer who is integrating to the API.
7.19.3.
Test Data
To perform tests in our test environment make sure to set Virtual Terminal to LIVE MODE, the TEST parameter as FALSE, and send the transactions to https://certify.securenet.com/API/Gateway.svc To request a test account, please contact your sales agent, or send a request to [email protected].
Credit Cards:
Test Credit Card Numbers for Approved Transactions American Express 370000000000002 Discover 6011000000000012 MasterCard 5424000000000015 Visa 4444333322221111 Fraud Prevention Settings AVS Match CVV/CID Approval CVV/CID Visa CVV/CID MasterCard 20008 568 999 998
Test Credit Card Numbers for Declined Transactions MasterCard 5105105105105100 MasterCard 5555555555554444 Visa 4111111111111111 Visa 4012888888881881 American Express 378282246310005 American Express 371449635398431
Checks:
For checking account number - use any 6-digit number. Valid Routing Numbers: 222371863 307075259 052000113
77
7.19.4.
Fault exceptions
When you are submitting an incorrect request, which is not validated by our XSD, we will send an HTTP 400 Bad Request response. Please look at the RESPONSE_REASON_TEXT for description of the error and modify your request accordingly. When submitting an HTTP POST (REST) request: 1. Please make sure that all the request elements are present in the order that is defined in XSD. 2. Fields, which are of value type, i.e. Integer, Decimal, etc., must be present in the request even if not needed, if their parent object is present. For example: If TRANSACTION object is sent as request xml then OVERRIDE_FROM, TOTAL_INSTALLMENTCOUNT, INSTALLMENT_SEQUENCENUM, TRANSACTION_SERVICE, RETAIL_LANENUM, DCI, AMOUNT, CASHBACK_AMOUNT elements should be present in proper order (as defined in XSD) even if the values are 0.
7.19.5.
Error Code
0102
Gateway API can return multiple errors for different operations. Here are some examples and suggested solutions:
0104
01C0
Please provide credit card number for the transaction. Full card number is required for: AUTH_ONLY, PARTIAL_AUTH_ONLY, AUTH_CAPTURE, PARTIAL_AUTH_CAPTURE, CAPTURE_ONLY, CREDIT_AUTHONLY, FORCE_CREDIT, FORCE_CREDIT_AUTHONLY, VERIFICATION, AUTH_INCREMENT, ISSUE, ACTIVATE, REDEEM, REDEEM_PARTIAL, DEACTIVATE,
78
Response Code
0100 0100 0100 0101 0102 01O3 0103 0104 0105 0106 0107 0108 0109 0110 0111 0112 0113 0114 0115 0116 0117 0118 0119 0120 0121 0122 0123 0124 0125
Reason Text
ERROR GATEWAY CONNECTION PROBLEM.RETRY NetConnect Error SECURENET ID IS REQUIRED SECURENET KEY IS REQUIRED ORDERID PROVIDED MUST BE EQUAL OR LESS THAN 25 CHARACTERS SECURENET ID IS INVALID SECURE KEY IS INVALID FOR SECURENET ID PROVIDED TEST VALUE SHOULD BE TRUE OR FALSE ORDERID PER TRANSACTION IS REQUIRED TRANSACTION AMOUNT IS REQUIRED METHOD VALUE SHOULD BE SPECIFIED TRANSACTION TYPE IS INVALID RECORDTYPE SHOULD BE SPECIFIED SAVE OR RECURRING OR PROCESS MERCHANT ACCOUNT IS INACTIVE DEBIT KEY SERIAL NUMBER(KSN) IS REQUIRED <VARIABLE> IS NOT ALLOWED ON CHECK21 TRANSACTION DEBIT PIN IS REQUIRED DEBIT PIN IS INVALID <VARIABLE> IS NOT ALLOWED ON DEBIT TRANSACTION <VARIABLE> IS NOT VALID STORED VALUE TRANSACTION CUSTOMER ID IS REQUIRED CUSTOMER ID MUST EXIST TO ADD/UPDATE ACCOUNT PAYMENT ID CANNOT BE NULL PAYMENT ID SHOULD BE UNIQUE FOR EXISTING CUSTOMER ID PAYMENT ID DOES NOT EXIST FOR THE CUSTOMER ID CUSTOMER ID MUST BE UNIQUE FOR EACH CUSTOMER RECORD CUSTOMER ID DOES NOT EXIST SECURENET ID SHOULD BE NUMBER ONLY
79
80
81
82
0001 0002
83
84
0001 0002
85
0001 0002
86
0001
87
88
In addition, here is the list of error codes generated based on response received from Card Networks:
REFER TO ISSUERCASE-SPECIAL CONDITION INVALID MERCHANT ID PICK UP CARD (NO FRAUD) DO NOT HONOR GENERAL ERROR PICK UP CARD, SPECIAL CONDITION (FRAUD ACCOUNT) HONOR MASTERCARD WITH ID PARTIAL APPROVAL FOR THE AUTHORIZED AMOUNT RETURNED IN GROUP III VERSION 022 VIP APPROVAL INVALID TRANSACTION INVALID AMOUNT INVALID CARD NUMBER NO SUCH ISSUER RE-ENTER TRANSACTION UNABLE TO BACK OUT TRANSACTION FILE IS TEMPORARILY UNAVAILABLE FORMAT ERROR EXPIRED CARD; PICK UP (BUYPASS) SUSPECTED FRAUD; PICK UP (BUYPASS) RESTRICTED CARD; PICK UP (BUYPASS) NO CREDIT ACCOUNT
89
90
7.19.6.
For problems with transaction processing or your connection to the server, contact SecureNet Technical Support at [email protected] or (888)231-0060, option 3. Please note that you will be prompted for your SecureNet ID and may be required to provide sample code for further research into your questions.
91