PGClient
Payment Gateway Client Library
PGClient Documentation
Payment Gateway Client Library
Files
C/C++
Header files
PgcClient.h
: Contains data type and function definitions
PgcKeys.h
: Contains data key definitions
PgcHelper.h
: Contains convenience helper function definitions
LIB files
PgcClientDll.lib
DLL files
PgcClientDll.dll
Sample files
PgcClientTstDll.cpp : Contains simple code to perform an auth transaction
C# / .Net
Source files
PgcConsts.cs : Contains data type definitions
PgcKeys.cs
: Contains data key definitions
LIB files
PgcClientCom.tlb
DLL files
PgcClientCom.dll
Sample files
Program.cs : Contains simple code to perform an auth transaction
Terms
Connection : The link between the client and the Payment Gateway.
The connection is persistent so it should be created and kept until not needed.
There can be separate connections for transactions, batches and data APIs.
Session : The container for requests and responses.
Create a new session for each request and close it immediately after use.
Sequence
Upon application startup
call PgcInit function to initialize the library
When need to connect to Payment Gateway
call PgcNewConn function to create a new connection
call PgcConnect function to connect to Payment Gateway (Optional; the first session will auto-connect)
For each transaction
call PgcNewSess function to create a new session
call PgcSet functions to set data to the session
call PgcRequest function to perform the transaction
call PgcGet functions to get data from the session
call PgcCloseSess function to close the session
When finished with Payment Gateway
call PgcDisconnect function to disconnect from Payment Gateway (Optional; PgcCloseConn will auto-disconnect)
call PgcCloseConn function to close the connection
Upon application shutdown
call PgcUninit function to Uninitialize the library
Generated by
1.8.12