Online documentation - Websydian v6.0

Users Guide | Patterns Reference | WebsydianExpress | Search

 

PaymentWebShop Parts


This document describes the objects of the Websydian PaymentWebShop pattern. PaymentWebShop inherits from WebShop and extends WebShop with entity attributes, functions and changes to functions concerning online payment. Refer to the WebShop Parts section for a description of the objects inherited from WebShop.

Abstract Entities

The following abstract entities are defined:

Extension of Shop Entity

In PaymentWebShop the Shop entity has been extended with fields to control exchange of events with a payment gateway.

Furthermore, the Shop entity inherits from PaymentWebShop.Abstract.PaymentGateway and through this inheritance it is ensured that the correct Shop instance is loaded when pages with external events is generated.

Payment Gateway Functions

The following page generators and event handlers are defined in order to support online payments verified by a payment gateway:

Payment Workflow Diagram

The workflow diagram of the payment process is illustrated below:

Payment Workflow Diagram

Payment Workflow Diagram

The call from Submit Payment.Ok to PaymentGateway is not strictly within the model, as the Ok event is invoked as an external server event rather than as a normal, application-internal event.