Difference between revisions of "HTML Web API"

From Cloud9 Payment Processing Gateway Documentation
Jump to: navigation, search
(Web Based Mini POS Sample)
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:
 
Simple web HTTP based API for online based and web enabled point of sale integrations.
 
Simple web HTTP based API for online based and web enabled point of sale integrations.
  
[[image:webapi.jpg|thumb|750px|HTTP API Sample Screenshot|link=http://samples.c9pg.com/html/c9pg_client_html_test.htm|Sample]]<br>
+
[[image:webapi.jpg|thumb|750px|HTTP API Sample Screenshot|link=http://samples.c9pg.com/HTML_JS/|Sample]]<br>
 
==Web Based Mini POS Sample==
 
==Web Based Mini POS Sample==
 
*[http://samples.c9pg.com/HTML_JS/ Run HTML Client with active source code display]
 
*[http://samples.c9pg.com/HTML_JS/ Run HTML Client with active source code display]
  
 
==HTML Sample Source Code==
 
==HTML Sample Source Code==
*[http://samples.c9pg.com/html/ Source Code]
+
*[http://samples.c9pg.com/HTML_JS/src Source Code]
  
 
==Initialization==
 
==Initialization==

Latest revision as of 00:43, 20 March 2020




Cloud9 Payment Gateway Documentation. This site can also be reached at http://docs.cloud9paymentgateway.com

Overview

Simple web HTTP based API for online based and web enabled point of sale integrations.

Sample

Web Based Mini POS Sample

HTML Sample Source Code

Initialization

The following points the sample to the test server:

  function onStart() {

....

       //let sUrl = PGC_SVC_C9PG_PDC;      // production server  
       let sUrl = PGC_SVC_C9PG_PWE_TEST;   // test server
 }

These lines assign the test merchant account info

function onRequest(nTransType) {

.....

       //Set Merchant Account Info (Merchant ID, Terminal ID, Password)
       PgcSetStr(nSess, 0, PGC_GWKEY_GMID, '1001396250');
       PgcSetStr(nSess, 0, PGC_GWKEY_GTID, 'GT1001396253');
       PgcSetStr(nSess, 0, PGC_GWKEY_GMPW, '123');
 }

Important Test Account Info

→NOTE: This is an actual TSYS test server. Please, use $1.00 (100 for implied decimal input in the samples below) and 999 for CVV to test, as various other amounts are hard-coded to return errors and other responses
The full description of various TSYS Test Server Responses can be found here TSYS Test Account


















From the makers of Cloud9 Payment Processing Gateway and Creditline Credit Card Processing Software