Difference between revisions of "HTML Web API"

From Cloud9 Payment Processing Gateway Documentation
Jump to: navigation, search
Line 3: Line 3:
 
==Overview==
 
==Overview==
 
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.
==Initialization==
 
First, visit the following web site to initialize, and '''select proceed to get over the security message, first (ignore any errors, the test server does not yet have a secure certificate of its own)''': [https://testlink.c9pg.com:5551/hj https://testlink.c9pg.com/]
 
  
 
[[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/c9pg_client_html_test.htm|Sample]]<br>
Line 13: Line 11:
 
*[http://samples.c9pg.com/html/ Source Code]
 
*[http://samples.c9pg.com/html/ Source Code]
  
==Alternative Integration Options==
+
==Initialization==
See [[Payment_Processing_Developer_Guide#Integration_Options|All Cloud9 Integration Options]]
+
The following points the sample to the test server:
 +
<code>
 +
  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');
 +
 
 +
  }
 +
 
 +
</code>
 +
 
  
 
{{Template:ImageFiller}}
 
{{Template:ImageFiller}}
 
{{Template:C9Footer|Integration}}
 
{{Template:C9Footer|Integration}}

Revision as of 23:08, 20 November 2018




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');
 }


















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