Payment Gateway SDK (v2.0)

Overview

The payment gateway SDK (PG SDK) is designed to enable developers to add any payment gateway into the interworks.cloud platform.

The PG SDK is designed to be highly extensible. This means that it can support any development of a new payment gateway. The PG SDK provides various tools that allow you to easily write and integrate a new payment gateway into the interworks.cloud platform. In addition, compliance with SDK rules allowed the payment gateway that you have written to be integrated into any future application of interworks.cloud platform without requiring any migration.

The least prerequisite for writing a new payment gateway is to be familiar with writing C#.

Hierarchy

A payment gateway accesses the interworks cloud platform through Payment Gateway SDK Manager illustrated in the diagram below:

  • Payment Gateway SDK Manager: Manages registration of the SDK,  discoveries extensions types of payment gateways such as Processors and Setup Options on applications.
  • Processor: A processor will be used from interworks.cloud platform that intends to complete a payment transaction. 
  • Setup Options: A collection from payment gateway settings.

Describing the basic classes of the SDK

  • TransactionRequest: An object which contains all basic info required for a payment transaction.
  • TransactionResponse:  An object which contains all basic info required for verifying a payment transaction on interwokrs.cloud platform. This Information should be able to be collected from the payment gateway.
  • TransactionRedirectRequest: An extended object of TransactionRequest which contains all basic info required for completing a payment transaction to redirection payment gateways.
  • TransactionRedirectResponse: An extended object of TransactionResponse which contains all basic info required for verifying a payment transaction to redirection payment gateways on interwokrs.cloud platform. This Information should be able to be collected from the payment gateway.