Difference between revisions of "Payment Processing API Documentation"

From Cloud9 Payment Processing Gateway Documentation
Jump to: navigation, search
(API Documentation)
Line 4: Line 4:
  
 
=API Documentation=
 
=API Documentation=
 +
 +
==Connection==
 +
<code>
 +
// Initializing library;
 +
// called once per application upon startup
 +
PgcInit("PgcSample");
 +
 +
// Connection handle;
 +
// one per connection to the remote server
 +
int nConn = 0;
 +
 +
// Creating connection to the remote server;
 +
// called once per connection
 +
nConn = PgcNewConn(PGC_SVC_C9PG_PWE_TEST, "Name", "Token", PGC_TIMEO_TXN, "PgcSample", "");
 +
if (nConn < PGC_ERR_NONE_MARKER) {
 +
    // Handing errors
 +
    // nConn contains the error code
 +
    // stop
 +
}
 +
 +
// Connecting to the remote server;
 +
// optional; will be called automatically if not connected
 +
int nErr = PgcConnect(nConn);
 +
if (nErr < PGC_ERR_NONE_MARKER)
 +
{
 +
    char sErr[256]; // Error tag; a more descriptive representation of the error code
 +
    PgcGetErrTag(nErr, sErr); // Getting error tag
 +
}
 +
 +
</code>
 
&rarr; '''Online Documentation:''' [http://cloud9paymentgateway.com/docs/API/Index.html Payment Gateway Client Library 0.1 documentation]
 
&rarr; '''Online Documentation:''' [http://cloud9paymentgateway.com/docs/API/Index.html Payment Gateway Client Library 0.1 documentation]
  

Revision as of 01:00, 20 August 2017




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

Step One

Please, review the Developer Guide to determine the best integration approach, before diving into the API Documentation below.

API Documentation

Connection

// Initializing library; // called once per application upon startup PgcInit("PgcSample");

// Connection handle; // one per connection to the remote server int nConn = 0;

// Creating connection to the remote server; // called once per connection nConn = PgcNewConn(PGC_SVC_C9PG_PWE_TEST, "Name", "Token", PGC_TIMEO_TXN, "PgcSample", ""); if (nConn < PGC_ERR_NONE_MARKER) {

   // Handing errors
   // nConn contains the error code
   // stop

}

// Connecting to the remote server; // optional; will be called automatically if not connected int nErr = PgcConnect(nConn); if (nErr < PGC_ERR_NONE_MARKER) {

   char sErr[256]; // Error tag; a more descriptive representation of the error code
   PgcGetErrTag(nErr, sErr); // Getting error tag

}

Online Documentation: Payment Gateway Client Library 0.1 documentation

Samples

Web Browser Samples

Web Browser Integration Samples

RESTFul JSON/SOAP

JSON API Documentation

MS Windows Samples

Windows Integration Samples

iOS Integration Samples

iOS Integration Samples

Android Integration Samples

Android Integration Samples





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