Knowledge BasePayment Methods and PSP Gateway Introduction

Payment Methods and PSP Gateway Introduction

Pipeline Steps

The following steps are available for re-use in the Sana Commerce framework. They are found directly in the payment library:
 
CancelOrderStep
Sets the status of the order to 'Cancelled'. Requires the order object to be set in the payment context.
 
DeductStockStep
Lowers stock level based on the products ordered (orderlines in order). Requires the order object to be set in the payment context.

PayOrderStep
Sets the status of the order to 'Paid'. Requires the order object to be set in the payment context.
 
RedirectToSuccessPageStep
Redirects the user to the order success page (ordersubmit.aspx). To change the URL the user will be redirected change the 'return_url_success' property in the payment module configuration.
 
SendOrderMailStep
Sends an order confirmation mail to the customer the order belongs to and the store account that places the order if they are not the same. Requires the order object to be set in the payment context.
 
PendingOrderStep
Sets the status of the order to 'In Progress'. Requires the order object to be set in the payment context.
 
OrderPathSelectorStep
Executes different pipelines based on the current status of the order. Requires the order object to be set in the payment context. Also the 'Pipelines' property in the context should contain all 'child' pipelines that need to be executed.
 
PSPRedirectStep
Redirects the user to the PSP page (external payment module only). The following configuration values have effect on this step: 'ResponseUseXml', 'ResponseUsePost', 'IsFramed' and 'PostUrl'
 
IpRangeValidationStep
Checks if the IP address of the one that made the request to this pipeline matches the list of allowed IP's in configuration (used as fraud protection for some external payment modules). The IP (ranges) to check can be set using the 'IpCheck' configuration value, if left empty no check will be done.
 
The diagram below shows the places the pipeline steps will be executed in a default external payment module: 
 
 
Knowledge BasePayment Methods and PSP Gateway Introduction