API-NeoGatewayReferenceGuide v2.1 wISP
API-NeoGatewayReferenceGuide v2.1 wISP
Table of Contents
Introduction .................................................................................................................................................. 3
VBV Transaction ........................................................................................................................................ 4
Difference between VBV Transaction and Simple Transaction ................................................................ 5
Getting Started.............................................................................................................................................. 6
Transaction Types ......................................................................................................................................... 7
Communicating Using HTTP GET/POST .................................................................................................... 8
Parameters ............................................................................................................................................ 8
Sample Transaction Requests with HTTP Get/Post ............................................................................ 10
Response Protocol (HTTPS) ................................................................................................................. 18
Communicating Using Web Service (XML/SOAP) ................................................................................... 19
Parameters .......................................................................................................................................... 19
EMV Parameters: ................................................................................................................................ 22
Industry Specific Parameters: ............................................................................................................. 22
Sample Transaction Requests with Web Service (XML/SOAP) ........................................................... 26
Response Protocol (XML/SOAP) ......................................................................................................... 35
Accessing the Web Service ................................................................................................................. 36
Card Entry Method Codes ....................................................................................................................... 37
Terminal Capability Codes ...................................................................................................................... 37
Account Type .......................................................................................................................................... 37
Response codes....................................................................................................................................... 38
Appendix A .................................................................................................................................................. 46
VBV Sample Verification Screen ............................................................................................................. 46
2
Introduction
This document is a reference point for general information on the Neo Gateway API service.
One of the following process can be used to process a transaction.
In a typical Neo Gateway usage scenario, a merchant captures the card information from the
user and sends that information to the Neo Gateway. The transaction usually follows the
pattern illustrated in the image below:
In order to be processed properly, all transactions are required to be in a proper format. This
document is intended to help you in understanding the proper format of transactions to be
submitted to Neo Gateway.
3
VBV Transaction
3DSecure is a process that allows a card holder to authenticate himself while making an online payment.
The implementation of 3D Secure by Visa is called Verified by Visa (VBV).
The VBV transaction usually follows the pattern illustrated in the image below:
1. At merchant’s payment page, the customer clicks the “Process” button after entering the credit
card information (card number/expiration/amount etc.)
2. On click of the Process button, the merchant creates a POST request (using the card
information) and redirects the customer’s browser to Neo Gateway payment URL.
For Details, check Sample Transaction Requests with HTTP Get/Post.
3. In the POST request, the merchant also includes Return URL parameter. This is the URL where
the customer would eventually be returned.
4. VBV verification screen would display. For details, see VBV Sample Verification Screen.
5. Customer enters the password, and clicks continue, Neo Gateway would try to process the
transaction.
6. After processing the transaction, the customer is redirected back to the Return URL (that the
merchant provided earlier), with the response and reference code for the transaction.
4
7. Based on preference and the response sent by Neo Gateway, merchant’s page could show a
success or failure message.
✓ VBV transactions only support GET/POST method of communicating with Neo Gateway (POST is
the preferred mode).
✓ VBV transactions request cannot be an internal request from the webserver. i.e. The merchant
has to actually redirect the customer’s browser to Neo Gateway transaction URL.
✓ For VBV transaction, “Return URL” is the compulsory parameter, which is sent as part of the
request message.
5
Getting Started
Based on your application setup and preference, you may choose to send the transaction
information to Neo Gateway by using one of the following methods:
• HTTP Get/Post or
• Web Service
Even though the method of communication affects the programming on your end, it doesn’t
have any impact on the internal validation and processing of Neo Gateway.
After you decide the way you wish to communicate, you would need to use one of the
following URLs to communicate with Neo Gateway:
URL Used for Web Service
URL for Test API = https://gatewaysandbox.merchantprocess.net/neogateway.asmx
URL for Production = https://gateway.merchantprocess.net/v2/neogateway.asmx
Wherever the notation [URL] is used, you may substitute this with the one you are using
for test/production.
Neo Gateway waits up to 30 seconds for a response from the network. Your process
should accommodate patience periods of at least 45 seconds to receive a response.
Important Information:
The IP of the computer used to submit transactions must be registered in NeoGateway system.
Do not confuse this with the client IP which is the IP of the Cardholder‘s machine that is
effecting the purchase.
Transactions can only be generated by the approved web-site. Multiple web-sites may submit
transactions through a common portal but each website must be individually approved for
processing using the portal’s IP(s).
6
Transaction Types
Neo Gateway API supports the following transaction types:
Sale
The Sale transaction is used for immediate purchase of goods or services. The sale transaction charges
the specified amount against the account.
PreAuthorization
The PreAuthorization transaction authorizes a specified amount for a transaction and places a hold on
the card holders account equal to the transaction amount for a limited time. Depending on the
cardholder’s issuing bank, the reserve can be in place for several days. In order to capture this reserve,
the merchant needs to invoke the Adjustment transaction type.
Adjustment
The Adjustment transaction captures a previously authorized transaction (PreAuthorization) that is
pending settlement and submits it for clearing and settlement.
Void
The Void transaction prevents an approved transaction from being settled. This transaction type must
be invoked if the merchant wishes to cancel the transaction within hours of transaction request. Void
transaction is only applicable on a transaction if it is not settled yet (it usually takes few hours for the
transaction to be set as settled in the banking system).
Credit
The Credit transaction is used to refund a specified amount to the card holder’s account. This can only
be applied after the transaction has been settled (Usually after one day of the creation of transaction).
Rebill
The Rebill transaction allows the submission of recurring charges. The Rebill transaction charges the
customer's payment account using details from the Initial transaction and prolongs the period for
maintaining the payment account details in the system.
7
Communicating Using HTTP GET/POST
Parameters
Parameters are parts of information that the merchant would send or expect to receive from the
gateway page. The level of integration and programming effort on the merchant’s side varies on the
type of parameters selected.
Based on a transaction’s needs, the Neo Gateway may expect the following parameters via HTTP
GET/POST method:
8
Ship_state State Max: 100
Ship_zip_code postal Code Max: 11
Ship_phone_nu Contact Phone number Max: 20
mber
Bill_address Street name or number Max: 150
Bill_city City Max: 100
Bill_country Country code (Use list of countries Max: 3
from ISO 3166 specification)
Bill_state State Max: 100
Bill_zip_code Postal Code Max: 11
Bill_phone_ Contact Phone number Max: 20
number
SiteIP IP address of the client’s computer Max: 18
where the transaction was
originated.
email: Email address of the client Max: 256
Tracking You can use this parameter to attach Max: 50
an internal reference of the
transaction. Any string of
alphanumeric characters up to 50
positions is allowed.
Ballot This is a nine digit number generated
in response to the original
transaction. This number must be
stored by the merchant at the time
of the original transaction.
This group of entries will repeat for all the items that comprise the purchase:
9
Sample Transaction Requests with HTTP Get/Post
The following section describes how you can perform various transactions using HTTP GET/POST
method.
Sale
10
Bill_phone_ number Contact Phone number Optional
SiteIPAddress IP address of the client’s computer where the Optional
transaction was originated.
Email Email address of the client Optional
This group of entries will repeat for all the items that comprise the purchase
[URL]/transaction.aspx?AccCode=89M045R43E&procCode=000000&merchant=999999999&terminal=D
EMO0001&cardNumber=4111111111111111&expiration=1214&amount=34.00¤cyCode=840&ca
rdHolder=cardholdername&cvv2=700&SiteIPAddress=225.224.225.224&email=joe@hotmail.com
Based on the nature of the order following may be appended to the request string more than one time
(subsequently with an incremented number, for example a product with Description1, Name1…
followed by a product with Description2, Name2 and so on):
&Description1=Bayer&Name1=Aspirin&Quantity1=10&UnitPrice1=1.00&Description2=MenPlus&Name2
=NitroPlus&Quantity2=20&UnitPrice2=25.00&Description3=Tax&Name3=Tax&Quantity3=1&
UnitPrice=3.00&Description4=Shipping& Name4=Shipping&Quantity4=1&UnitPrice4=5.00
The total for these line items is 34.00 this should match the amount of the
transaction submitted. The Generic Name must be included in the list of pre-
approved items sold by the merchant.
11
PreAuthorization
It is used in conjunction with a subsequent adjustment to complete a sale.
Required Fields
12
The following entries will repeat for all the items that comprise the purchase.
Field Description
ProdCode(n) Product code
Description(n) Description of Product on Website
GenericName(n) Generic Name of Product (NitroPlus, Ibuprofen)
UnitPrice(n) Price per Unit
[URL]/transaction.aspx?procCode=300000&merchant=999999999&terminal=DEMO0001&cardNumber=
4111111111111111&expiration=1214&amount=34.00¤cyCode=840&cardHolder=usuario+de+pr
ueba&cvv2=700&Tracking=Prea100&SiteIPAddess=225.224.225.224&email=joe@hotmail.com
Based on the nature of the order following may be appended to the request string more than one time
(subsequently with an incremented number, for example a product with Description1, Name1…
followed by a product with Description2, Name2 and so on):
&ProdDescription1=Bayer&GenericName1=Aspirinr&Quantity1=10&Charge1=1.00&ProdDescription2=
MenPlus&GenericName2=NitroPlus&Quantity2=20&Charge2=25.00
& ProdDescription3=Tax&GenericName3=Tax&Quantity3=1&
Charge3=3.00&ProdDescription4=Shipping&GenericName4=Shipping&Quantity4=1&Charge4=5.00
The total for these line items is 34.00 this should match the amount of the transaction
submitted. The Generic Name must be included in the list of pre-approved items sold by
the merchant.
13
Adjustment
Adjustments can only be submitted by the same merchant who did the associated preauthorization.
Required Fields
[URL]/transaction.aspx?procCode=290000&merchant=999999999&terminal=DEMO0001&Ballot=12345
6789&Tracking=ADJ20100
14
Void
To submit a VOID only proccode, merchant, terminal and the ballot number of the corresponding
transaction (000000) are required.
Required Fields
[URL]/transaction.aspx?procCode=220000&merchant=999999999&terminal=DEMO0001&cardNumber=
4111111111111111&expiration=1214&amount=100.50¤cyCode=840&cardHolder=test+user&
&ballot=000000001&Tracking=V01
15
Credit
Required Fields
[URL]/transaction.aspx?procCode=200000&merchant=999999999&terminal=DEMO0001&cardNumber=
4111111111111111&expiration=1214&amount=100.50¤cyCode=840&cardHolder=test+user
&ballot=000000001&Tracking=C01
16
Rebill
Required Fields
[URL]/transaction.aspx?procCode=100000&merchant=999999999&terminal=DEMO0001&cardNumber=
4111111111111111&expiration=1214&amount=100.50¤cyCode=840&cardHolder=test+user&Tra
cking=V01
17
Response Protocol (HTTPS)
In response to the post requests described above, a string of variables separated by ~ is received.
The response to all above-mentioned transaction types are structured as follows:
Parameter Description
Response code Alphanumeric, 3 characters max that represents the final
status of the transaction.
Reference Number Alphanumeric, 12 chars max. This number is the id of the
transaction.
Authorization Number Alphanumeric, 6 chars maximum (generated for internal
purposes).
Time Transaction time, in the format hh/mm/ss
Date Transaction date, in the format mm/dd
Ballot number 9 digit number, a sequential number used for further
transaction indexing. Required if you want to void the
transaction.
Example:
00~012345678901~012345~120000~0505~012345678
18
Communicating Using Web Service (XML/SOAP)
Parameters
All the parameters required for submitting various transactions using web service are listed in the table
below. You can refer this table to view the details of parameters used in your required transaction.
19
currencyCode Value: ISO code that represents the Max: 3
currency being used (e.g USD).
Format: Character String
emailAddress Value: Email address of the client Max: 256
Format: Character String
shippingName Value: Name of person receiving the Max: 100
purchase
Format: Character String
shippingDate Value: Projected date of shipment Min: 10
Format: MM/DD/YYYY
shippingAddress Value: Street name and/or number Max: 150
Format: Character String
shippingCity Value: City Name Max: 100
Format: Character String
shippingState Value: State Name Max: 100
Format: Character String
shippingCountry Value: Country code Max: 3
Note: Use list of countries from ISO
3166 specification
shippingZipCode Value: Postal Code Max: 11
Format: Character String
shippingPhoneNumber Value: Contact Phone number Max: 20
billingAddress Value: Street name and/or number Max: 150
billingCity Value: City Name Max: 100
Format: Character String
billingState Value: State Name Max: 100
Format: Character String
billingCountry Value: Country code Max: 3
Format: Character String
Note: Use list of countries from ISO
3166 specification
billingZipCode Value: Zip code of the billing city Max: 11
Format: Character String
billingPhoneNumber Value: Phone Number Max: 20
Format: Character String
userIPAddress Value: IP address of the computer Max: 18
where the client’s transaction was
originated
Format: Numeric in the following
format: ###.###.###.###
systemTracking Value: Client specific parameter to Max: 20
track transaction.
Format: Any string of alphanumeric
characters up to 20 positions is
allowed.
20
Line Item fields
Filed Name Description Length
Code Merchant internal code for Item Max: 10
Name Generic name of product Max: 50
UnitPrice Price per unit Max: 12
Quantity Units sold to client
Description Description of product on website Max: 50
21
EMV Parameters:
EMV parameters in SOAP webservices are communicated in Additional Data field. Following are the
required properties:
22
Airline:
23
Length: 1
Format: [0-9], [A-z]
CityofOriginAirportCode The originating airport or railway name’s standard Y
abbreviation.
Length: 1 - 5
CityofDestinationAirportCode The destination airport or railway name’s standard Y
abbreviation.
Length: 1 - 5
TotalFareAmount Total amount of the ticket and should equal the amount of the Y
transaction
TotalFeeAmount Total Fee associated with the ticket N
TotalTaxAmount Total Tax associated with the ticket N
TripLegFareAmount Total Amount of the trip leg associated with the ticket N
TripLegFeeAmount Total Fee of the trip leg associated with the ticket N
TripLegTaxAmount Total Tax of the trip leg associated with the ticket N
Restrictions Restrictions are limitations set on a ticket according to the type N
of fare, such as nonrefundable or three-day minimum stay.
Length: 1 - 20
TotalTaxCollectedIndicator Reflects total sales tax capture and reporting information such N
as whether sales tax was included in the purchase amount or if
goods and services were not taxable.
Format: Y, N, 0
FullVATAmounts The gross amount from which the VAT was calculated, and a N
value added tax at the full tax rate.
HalfVATAmounts The gross amount from which the VAT was calculated and a N
value-added tax at the half tax rate.
TaxExemptIndicator The indicator noting whether the goods or services were tax- N
exempt, or tax was not collected.
Format: 1, 0
RestrictedTicketIndicator The identifier noting that the ticket purchased has some N
restriction associated with its use.
Format: 1, 0
ExchangeTicketAmount The amount of the new ticket purchase on an exchanged N
ticket.
ExchangeFeeAmount The fee amount of the new ticket purchase on an exchanged N
ticket.
TravelAuthorizationCode The code provided by the company to a travel agent N
authorizing ticket issuance.
Length: 1 - 64
IATAClientCode The International Air Transport Association (IATA) code N
identifying the company that purchased the ticket.
Length: 1 - 17
DetailTaxAmount1 Breakdown of Tax Amount into different Tax Type and their N
Rate
DetailTaxAmount2 Breakdown of Tax Amount into different Tax Type and their N
Rate
24
DetailTaxAmount3 Breakdown of Tax Amount into different Tax Type and their N
Rate
DetailTaxAmount4 Breakdown of Tax Amount into different Tax Type and their N
Rate
DetailTaxAmount5 Breakdown of Tax Amount into different Tax Type and their N
Rate
DetailTaxAmount6 Breakdown of Tax Amount into different Tax Type and their
Rate
FullVATAmounts:
HalfVATAmounts:
DetailTaxAmount[N]:
25
Sample Transaction Requests with Web Service (XML/SOAP)
The following section describes how you can perform various transactions using XML/SOAP method.
Sale
Sample Request
26
<Description>perfume</Description>
<Quantity>1</Quantity>
<UnitPrice>500.00</UnitPrice>
</ItemDetails>
</itemDetails>
<systemTracking>593d7ef0b5d1c01ac4e36791</systemTracking>
<additionalData>
<AdditionDataDetail>
<Name>CARD_ENTRY_MODE</Name>
<Value>052</Value>
</AdditionDataDetail>
</additionalData>
</Sale>
</soap:Body>
</soap:Envelope>
Sample Response
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
27
PreAuthorization
It is used in conjunction with a subsequent adjustment to complete a sale.
Sample Request
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<PreAuthorization xmlns="http://www.croem.net/neogateway/">
<accessCode>89M045R43E </accessCode>
<merchantAccountNumber>999999999</merchantAccountNumber>
<terminalName>DEMO0001</terminalName>
<clientTracking> V01</clientTracking>
<cardNumber>4151611211112111</cardNumber>
<cardHolder>sarahjones </cardHolder>
<cardExpiration>1214</cardExpiration>
<cvv>700</cvv>
<track1> </track1>
<track2> </track2>
<amount>100.00</amount>
<currencyCode>840</currencyCode>
<emailAddress>>joe@hotmail.com</emailAddress>
<shippingName> john&Johnsan</shippingName>
<shippingDate>1213</shippingDate>
<shippingAddress> 350 Fifth Avenue, 34th floor </shippingAddress>
<shippingCity>newyork</shippingCity>
<shippingState>NY</shippingState>
<shippingCountry>USA</shippingCountry>
<shippingZipCode>101188</shippingZipCode>
<shippingPhoneNumber>2123124700</shippingPhoneNumber>
<billingAddress> 51, Avenue Blanc </billingAddress>
<billingCity> newyork </billingCity>
<billingState>NY</billingState>
<billingCountry>USA</billingCountry>
<billingZipCode>3299</billingZipCode>
<billingPhoneNumber>2122103190</billingPhoneNumber>
<userIpAddress>225.224.225.224</userIpAddress>
<systemTracking>593d7ef0b5d1c01ac4e36791</systemTracking>
<additionalData>
<AdditionDataDetail>
<Name>CARD_ENTRY_MODE</Name>
<Value>052</Value>
</AdditionDataDetail>
</additionalData>
</PreAuthorization>
</soap:Body>
</soap:Envelope>
28
Sample Response
Adjustment
Adjustments can only be submitted by the same merchant who did the associated preauthorization.
Sample Request
29
</additionalData>
</Adjustment>
</soap:Body>
</soap:Envelope>
Sample Response
Void
Sample Request
30
</AdditionDataDetail>
</additionalData>
</Void>
</soap:Body>
</soap:Envelope>
Sample Response
Credit
Sample Request
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<Credit xmlns="http://www.croem.net/neogateway/">
<accessCode>89M045R43E </accessCode>
<referenceId>13600651</referenceId>
<merchantAccountNumber>999999999</merchantAccountNumber>
<terminalName>DEMO0001</terminalName>
<clientTracking>V01</clientTracking>
<amount>100.50</amount>
<systemTracking>593d7ef0b5d1c01ac4e36791</systemTracking>
<additionalData>
31
<AdditionDataDetail>
<Name>CARD_ENTRY_MODE</Name>
<Value>052</Value>
</AdditionDataDetail>
</additionalData>
</Credit>
</soap:Body>
</soap:Envelope>
Sample Response
Rebill
Sample Request
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<Rebill xmlns="http://www.croem.net/neogateway/">
<accessCode>89M045R43E </accessCode>
<merchantAccountNumber>999999999</merchantAccountNumber>
<terminalName>DEMO0001</terminalName>
<clientTracking> V01</clientTracking>
<cardNumber>4111111111111111</cardNumber>
32
<cardHolder>sarahjones </cardHolder>
<cardExpiration>1214</cardExpiration>
<amount>100.50</amount>
<currencyCode>840</currencyCode>
<emailAddress>>joe@hotmail.com</emailAddress>
<shippingName>john&Johnsan</shippingName>
<shippingDate>1213</shippingDate>
<shippingAddress> 350 Fifth Avenue, 34th floor </shippingAddress>
<shippingCity>newyork</shippingCity>
<shippingState>NY</shippingState>
<shippingCountry>USA</shippingCountry>
<shippingZipCode>101188</shippingZipCode>
<shippingPhoneNumber>2123124700</shippingPhoneNumber>
<billingAddress> 51, Avenue Blanc </billingAddress>
<billingCity> newyork </billingCity>
<billingState>NY</billingState>
<billingCountry>USA</billingCountry>
<billingZipCode>3299</billingZipCode>
<billingPhoneNumber>2122103190</billingPhoneNumber>
<userIpAddress>225.224.225.224</userIpAddress>
<itemsDetails>
<ItemDetails>
<Code>string</Code>
<Name>Aspirin</Name>
<Description>Bayer&Generic</Description>
<Quantity>10</Quantity>
<UnitPrice>1.0</UnitPrice>
</ItemDetails>
<ItemDetails>
<Code>02A</Code>
<Name>CK</Name>
<Description>perfume</Description>
<Quantity>1</Quantity>
<UnitPrice>500.00</UnitPrice>
</ItemDetails>
</itemsDetails>
<systemTracking>593d7ef0b5d1c01ac4e36791</systemTracking>
<additionalData>
<AdditionDataDetail>
<Name>CARD_ENTRY_MODE</Name>
<Value>052</Value>
</AdditionDataDetail>
</additionalData>
</Rebill>
</soap:Body>
</soap:Envelope>
Sample Response
33
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<RebillResponse xmlns="http://www.croem.net/neogateway/">
<RebillResult>
<TransactionId>13600651</TransactionId>
<OperationType>Rebill</OperationType>
<Tracking>Test</Tracking>
<RequestDate>2013-04-24T12:49:10.3809171-04:00</RequestDate>
<ResponseDate>2013-04-24T12:49:15.8802316-04:00</ResponseDate>
<Code>00</Code>
<AuthorizationNumber>847496</AuthorizationNumber>
<ProcessorId>3</ProcessorId>
<Description>Approved</Description>
<Result>00~311416847496~847496~124915~0424~013600651~</Result>
<ReturnURL>string</ReturnURL>
</RebillResult>
</RebillResponse>
</soap:Body>
</soap:Envelope>
34
Response Protocol (XML/SOAP)
The response to all above-mentioned transaction types are structured as follows:
Parameter Description
TransactionId Alphanumeric, 12 chars max
OperationType Type of operation, e.g Sale, Credit
Tracking Tracking number of the transaction.
RequestDate Date transaction was requested in a format Date:Time
e.g 2013-04-24T12:49:10.3809171-04:00
ResponseDate Date transaction was processed fin a format Date:Time
e.g 2013-04-24T12:49:10.3809171-04:00
AuthorizationNumber Alphanumeric, 6 chars maximum (generated for internal
purposes)
ProcessorId Id of the processor
Description Description(status) of the transaction e.g Approved,
rejected
Result Alphanumeric, represent various parameter concatenated
with ~. Description of each index is as follow:
1. Response Code
2. Processor Tracking ID
3. Transaction Authorization Number
4. Transaction Response Time
5. Transaction Response Date
6. Ballot
7. EMV Response Data (Base64 encoded)
Code Alphanumeric, 3 characters max that represents the final
status of the transaction
ReturnURL
BinId Bin Identifier
ProcessorResponseRaw Processor Response in raw format
InternalResponseCode Response Code for internal use
SystemTracking Custom identifier to track the transaction
EMVResponse Response of the EMV
35
Accessing the Web Service
As Web Services are based on open protocols such as the Simple Object Access Protocol (SOAP), this
client technology can also be used to consume non-ASP.NET Web Services.
Within the SDK, there is a tool called the Web Services Description Language tool (WSDL.exe). This
command-line tool is used to create proxy classes from WSDL. For example, using Microsoft Visual
Studio you can use the following command to generate a proxy class that encapsulates the web
methods:
C:\Program Files\Microsoft Visual Studio 8\VC>wsdl [URL]/neogateway.asmx?WSDL
The class generated will contain methods that will return a response object. Compiling this proxy class
into an application and then calling this proxy class's method results in the proxy class packaging a SOAP
request across HTTP and receiving the SOAP-encoded response.
From the client perspective, the code would be similar to the following examples:
C#.net
TCservice thewebservice = new TCservice();
String theresponse = thewebservice.Sale(…);
VB.net
Dim thewebservice As New TCservice()
Dim theresponse As String = thewebservice.Sale(…)
Jscript.net
var thewebservice: TCservice = new TCservice();
var theresponse:String = thewebservice.Sale(…);
36
Card Entry Method Codes
05 Chip Contact
90 Magnetic Stripe
0 Unspecified or unknown
8 Terminal has PIN entry capability but PIN pad is not currently operative
Account Type
37
Response codes
00 Ok, or Approved
01 Call Issuer
02 Call Issuer
03 Invalid Merchant
05 Decline
06 Call Issuer
09 Decline, Code #9
11 Ok, or Approved
12 Invalid Transaction
13 Invalid Amount
14 Invalid Card
38
22 Decline, Code #22
25 Decline
28 Decline
30 Format Error
39 Invalid Transaction.
39
45 Decline, Code #45
51 Insufficient Funds
52 Invalid Account
53 Invalid Account
54 Expired Card
55 Invalid PIN
57 Decline
58 Invalid Transaction
61 Decline
62 Decline
65 Decline
40
68 Error, Slow Response
75 Decline
77 Error in Close
79 Error in Key
81 TC not DB/CR
89 Error, in TID
41
91 Issuer out of Service
92 Invalid Issuer
93 Decline
94 Duplicate transmission
96 Call Issuer
42
108 Credit was not authorized.
-Credit is authorized only for the same merchant who did the sale.
-You will not be able to credit a card with an amount greater than the
sum of the amounts previously debited for you.
-Void is authorized only for the same merchant who did the sale.
-You will not be able to void a transaction for an amount other than the
amount previously debited.
110 Invalid card type. Only Visa and MasterCard are authorized.
You can complete all fields: address, city, state, country, postal
code.
43
122 Only currency “USA Dollar” is authorized. USA Dollar =840.
135
44
231 Line items required and not included
45
Appendix A
46
Contact Information
Panama
Calle 50ta y Calle Santo Domingo
Edificio Global Bank piso 31 oficina 3104
Ciudad de Panama, Panama
USA
12781 Miramar Parkway
Suite 103
Miramar, Fl 33027
Worldwide
ccsupport@croem.net
yamilrm
(Yamil Rivera@Croem Inc.)
47