Difference between revisions of "Payment Processing API Documentation"
From Cloud9 Payment Processing Gateway Documentation
(→Flow) |
(→Flow) |
||
Line 11: | Line 11: | ||
==Flow== | ==Flow== | ||
#Initialize the library<br><code>PgcInit("PgcSample");</code> | #Initialize the library<br><code>PgcInit("PgcSample");</code> | ||
− | #Connect to the Payment Web Controller (PWC - direct Cloud9 Server connection) or local Payment Device Controller (PDC) Server<br><code>int nConn = PgcNewConn(PGC_SVC_C9PG_PDC, "Name", "Token", PGC_TIMEO_TXN_UI, "PgcSample", "");</code> | + | #Connect to the Payment Web Controller (PWC - direct Cloud9 Server connection) or local Payment Device Controller (PDC) Server |
− | + | ##Create Connection Handle<br><code>int nConn = PgcNewConn(PGC_SVC_C9PG_PDC, "Name", "Token", PGC_TIMEO_TXN_UI, "PgcSample", ""); //USE PGC_SVC_C9PG_PWE_TEST for PWE</code> | |
− | + | ##Open the Connection, specified by Connection Handle<br><code>int nErr = PgcConnect(nConn);</code> | |
− | ##Open the Connection, specified by Connection Handle | + | #Create New Session<br><code>int nSess = PgcNewSess(nConn, 1);</code> |
− | #Create New Session | + | #Set Session Parameters<br><code></code> |
− | #Set Session Parameters | + | ##Set MID/TID/PWD<br><code></code> |
− | ##Set MID/TID/PWD | + | ##Set Transaction Type<br><code></code> |
− | ##Set Transaction Type | + | ##Set Transaction Medium (e.g. Credit Card)<br><code></code> |
− | ##Set Transaction Medium (e.g. Credit Card) | + | ##Set Transaction Parameters (e.g. Amount, Tax, Trace#)<br><code></code> |
− | ##Set Transaction Parameters (e.g. Amount, Tax, Trace#) | + | #Send the Request for this Session<br><code></code> |
− | #Send the Request for this Session | + | #Get Response for the Session<br><code></code> |
− | #Get Response for the Session | + | #Close the Session<br><code></code> |
− | #Close the Session | ||
→ '''Online Documentation:''' [http://cloud9paymentgateway.com/docs/API/ Payment Gateway Client Library ver 17.08.14 documentation] | → '''Online Documentation:''' [http://cloud9paymentgateway.com/docs/API/ Payment Gateway Client Library ver 17.08.14 documentation] |
Revision as of 06:35, 20 August 2017
Cloud9 Payment Gateway Documentation. This site can also be reached at http://docs.cloud9paymentgateway.com
Contents
Step One
Please, review the Developer Guide to determine the best integration approach, before diving into the API Documentation below.
API Documentation
Overview
The following document will give a good idea of how to use our Payment Gateway Client API (PGCApi), which have wrappers for other languages (VB, JS, etc) This is a simpler value pair operation library
Flow
- Initialize the library
PgcInit("PgcSample");
- Connect to the Payment Web Controller (PWC - direct Cloud9 Server connection) or local Payment Device Controller (PDC) Server
- Create Connection Handle
int nConn = PgcNewConn(PGC_SVC_C9PG_PDC, "Name", "Token", PGC_TIMEO_TXN_UI, "PgcSample", ""); //USE PGC_SVC_C9PG_PWE_TEST for PWE
- Open the Connection, specified by Connection Handle
int nErr = PgcConnect(nConn);
- Create Connection Handle
- Create New Session
int nSess = PgcNewSess(nConn, 1);
- Set Session Parameters
- Set MID/TID/PWD
- Set Transaction Type
- Set Transaction Medium (e.g. Credit Card)
- Set Transaction Parameters (e.g. Amount, Tax, Trace#)
- Set MID/TID/PWD
- Send the Request for this Session
- Get Response for the Session
- Close the Session
→ Online Documentation: Payment Gateway Client Library ver 17.08.14 documentation
Samples
Web Browser Samples
Web Browser Integration Samples
RESTFul JSON/SOAP
MS Windows Samples
iOS Integration Samples
Android Integration Samples
From the makers of Cloud9 Payment Processing Gateway and Creditline Credit Card Processing Software