Online documentation - Websydian v6.0

Users Guide | Patterns Reference | WebsydianExpress | Search

 

PaymentGateway Abstract Entity

The PaymentGateway abstract entity adds functionality to control exchange of events with a payment gateway. The PaymentGateway entity has three abstract functions and includes one data entity:

The PaymentGateway.Data.Application entity is ancestor to the PaymentWebShop.Data. Shop entity, and the Shop entity replaces the PaymentGateway.Data.Application entity for the abstract functions of PaymentGateway. This way the Shop entity is used to store attributes of the payment gateway used by siblings of the abstract functions.

PaymentGateway Abstract Functions

The PaymentGateway has the following abstract functions that serves as ancestors to functions involved in exchange with a payment gateway:

Note! For each SendToExternalServer function there will be one or more corresponding ReceiveFromExternalServer functions. Whenever a document with a  SendToExternalServer function is generated, the digital signature of its Hidden fields are stored in the Session table in the field LastExternalSignature. This digital signature is used for verification of the first incoming ReceiveFromExternalServer event. Therefore the fields of the Hidden variable of these functions must match in order and content.

PaymentGateway Inheritance

The PaymentGateway entity inherits from the WSYUTIL/ExternalServerControl pattern.