Shopping Cart Software Support

GoEmerchant.com provides all-inclusive merchant account solutions
GoEmerchant Online Merchant Accounts Merchant Account Solutions
 

Apply Online | Merchant Sign-In


1.888.638.7867


  Email Us
  Apply Online
Merchant Account Solutions

XML Gateway API
Setting up the XML Gateway API

  Quick Menu
Online Help
Getting Started
Frequently Asked
Questions
Resources
Marketing
Start Here
  Take a Tour of our E-commerce Solutions and Shopping Cart Software.
  Apply online today!



XML Gateway API

The XML gateway API is a programming interface that resides on transaction servers which communicate directly to credit card processing networks. The programming interface requires that the merchant, or their web programming staff, be sufficiently knowledgeable in programming skills in any programming or object oriented scripting language. The XML Gateway API accepts the credit card purchasers information, and produces an authorization or decline directly from the merchant bank.

The XML Gateway API provides methods to perform the following operations: AUTH, SALE, SETTLE, CREDIT, VOID and QUERY. The information is passed via 128bit SSL https post in XML format. That post occurs in the background from the merchant's server. Thus the purchaser never leaves the merchant's website. The authorization information is returned in XML format with full error trapping and reporting to indicate the success or failure of the transaction.

General Requirements:

What to I need to send to the XML Gateway?

<?xml version="1.0" encoding="UTF-8"?>
<TRANSACTION>
  <FIELDS>
    <FIELD KEY="merchant">merchant id</FIELD> # assigned by gateway
    <FIELD KEY="gateway_id">gatewayID</FIELD> # assigned by gateway
    <FIELD KEY="operation_type">auth/sale</FIELD>
    <FIELD KEY="order_id">MUST BE UNIQUE ASSIGNED</FIELD>
    <FIELD KEY="total">(In US Dollars. Example 59.99 No $ signs.)</FIELD>
    <FIELD KEY="card_name">(Visa, Amex, Discover or MasterCard)</FIELD>
    <FIELD KEY="card_number">15|16 digit credit card number</FIELD>
    <FIELD KEY="card_exp">MMYY</FIELD>
    <FIELD KEY="cvv2">3 digit cvv2 code</FIELD> # not required
    <FIELD KEY="owner_name">name</FIELD>
    <FIELD KEY="owner_street">address</FIELD>
    <FIELD KEY="owner_city">city</FIELD>
    <FIELD KEY="owner_state">state AA</FIELD>
    <FIELD KEY="owner_zip">zip</FIELD>
    <FIELD KEY="owner_country">country AA</FIELD>
    <FIELD KEY="owner_email">Email of customer </FIELD> # not required
    <FIELD KEY="owner_phone">Phone of customer</FIELD> # not required
    <FIELD KEY="recurring">0-no 1-yes</FIELD>
    <FIELD KEY="recurring_type">Null if recurring =0</FIELD>
    <FIELD KEY=”remote_ip_address”>Customer IP Address</FIELD> # not required
  </FIELDS>
</TRANSACTION>


What is the response that I get back from the XMLGateway (for operation_type auth or sale)?

<?xml version="1.0" encoding="UTF-8"?>
<RESPONSE>
  <FIELDS>
    <FIELD KEY="status">0-error 1-success 2-declined</FIELD>
    <FIELD KEY="auth_code">character code sent by the bank </FIELD>
    <FIELD KEY="auth_response">message from the bank </FIELD>
    <FIELD KEY="avs_code">avs code from the bank</FIELD>
    <FIELD KEY="cvv2_code">cvv2 code from the bank</FIELD>
    <FIELD KEY="order_id">echoed back from original post</FIELD>
    <FIELD KEY="reference_number">returned for use with credits/voids/settles</FIELD>
    <FIELD KEY="error">error text</FIELD>
  </FIELDS>
</RESPONSE>


** NOTE **

recurring_type options:
daily, weekly, biweekly, monthly, quarterly, semiannually, annually

order_id options:
only these characters are accepted: a-z, A-Z, 0-9, @, hyphen (-), space, comma (,), and a period (.).
There is also a length restriction with a low limit of 1 and a max of 50 characters.

operation types:
auth - just gets the card authorized it does not settle the transaction.
sale - authorizes the card and settles the transaction.

status:
if it is 0, the response will look like this:
    <FIELD KEY="status">0</FIELD>
    <FIELD KEY="auth_code"></FIELD>
    <FIELD KEY="auth_response"></FIELD>
    <FIELD KEY="avs_code"></FIELD>
    <FIELD KEY="cvv2_code"></FIELD>
    <FIELD KEY="order_id">WHATEVER WAS SENT IN</FIELD>
    <FIELD KEY="reference_number"></FIELD>
    <FIELD KEY="error">DESCRIPTIVE ERROR MESSAGE</FIELD>
Notice most fields are blank when status = 0! If the status is a 1 or 2 then the fields will be field in with the appropriate responses

reference_number:
this is the number used in later operations to reference specific transactions for credits, voids and settles.


Error XML Responses:

Malformed fields or bad xml in all cases will be returned in the xml response defined for the operation type sent in with the error field defined. For operation types that cannot be induced from incoming fields a generic xml response will come back with simply an error field defined with the reason for the failure.


Example Error:

<?xml version="1.0" encoding="UTF-8"?>
<RESPONSE>
  <FIELDS>
    <FIELD KEY="error">DESCRIPTIVE ERROR MESSAGE</FIELD>
  </FIELDS>
</RESPONSE>

 

For a more detailed description on how to setup the XML Gateway API, and to view PERL and ASP script samples,
documents have been provided below:


.pdf
Click here to download an Adobe PDF format of the XML based API documentation (must be opened with Adobe Acrobat).

 


<< previous page

  Contact Us


Sales:


Toll-free:
888.638.7867

Local:
856.546.3800


sales@goemerchant.com


Support:


Toll-free:
888.711.3800


support@goemerchant.com


Newsletter Signup
GoEmerchant.com publishes a Free monthly newsletter packed with helpful tips and industry updates.

Sign up today!

We value your privacy.
Featured Clients
"I started with GoEmerchant as a reseller of their product and used the service for my customers' websites. Their program made it easy to set up a store front with no programming needs or worries."

- Robert Brody, Global World Design

Solutions | Features/Pricing | Featured Clients | Support | Reseller Program | Company | Contact Us

Copyright © 2005, GoEmerchant.com Credit Card Processing Solutions.

GoEmerchant, LLC is a registered ISO/MSP with Key Bank National Association, Cleveland, Ohio.


Privacy Policy
| Terms & Conditions | Site Map