Include the following script within your web page code.
2. Initialize SDK:
Use the following code to initialize the AFCardKey library. Please Note: If you don't want to send request to ArgoFire server, call setTestMode(true) method. With this, dummy responses will be returned.
3. Response Format:
This SDK returns the same response object for all requests. Take note of the code returned, if it is 200 or 201 the request was successful, otherwise it is an error.
Please Note: responseObject.code will describe the result of the request sent to ArgoFire API. If value is 'OK', then the request is successful.
4. Create Client Session Id Request:
This request should originate from the Integrator's Server Side. The request includes Merchant assigned "Username", "Password" and "Vendor" for the ArgoFire Gateway. When this request is sent to ArgoFire API, the ArgoFire server validates the request, generates a ClientSessionID and returns the ClientSessionID in the response to the client’s server. The ClientSessionID is valid for a configured time after it is generated/received.
For more details for Create Client Session ID request click here.
5. GetToken:
To tokenize an ACH account, the client browser must first send a GetToken request to ArgoFire, then the ArgoFire API will return the tokenized account as a CheckInfoKey.
If CheckInfoKey is already created, skip this step and move on to step 6.
As mentioned, the GetToken request should be requested from the Client Browser. The request includes "ClientSessionID", "Account Number", "Transit Number", "Name on Account", "Check Type", "Account Type", "Street", "Zip", "First Name" and "Last Name".
The ClientSessionID is what you received from the GetClientSessionID request.
When this request is sent to the ArgoFire API, the ArgoFire server validates the request, generates a token as a CheckInfoKey, and returns the token/CheckInfoKey in the reponse to the browser.
ProcessCheck request must be sent by the Integrator Server.
After the CheckInfoKey/Token is received, the Integrator Server end will have to send a ProcessCheck request to ArgoFireAPI. ArgoFire validates the request, processes the request with respective payment processors and returns the response.
For more details for ProcessCheck request click here.