Class CheckoutHandlerWithStatusPage
- Namespace
- Dynamicweb.Ecommerce.Cart
- Assembly
- Dynamicweb.Ecommerce.dll
A CheckoutHandlerWithStatusPage does all the business logic required to complete an order. Inherit from this base class to extend to checkout logic in DynamicWeb eCommerce Cart V2.
public abstract class CheckoutHandlerWithStatusPage : CheckoutHandler
- Inheritance
-
CheckoutHandlerWithStatusPage
- Inherited Members
Remarks
Make use of the Dynamicweb AddIn API to add editable properties to the checkout handler.
Methods
CheckoutDone(Order, int)
This method should be called when the handler is done with the checkout even if the checkout fails.
protected static void CheckoutDone(Order order, int pageID)
Parameters
GetInfoFromQueryString(Order)
Returns all info from query string as xml string
protected string GetInfoFromQueryString(Order order)
Parameters
order
OrderThe order
Returns
- string
System.String.
PrepareGatewayResult(string)
Save cart's pageID in suitable form for recording in the GatewayResult field
protected static string PrepareGatewayResult(string pageID)
Parameters
pageID
stringThe page identifier.
Returns
- string
System.String.
RetrievePageID(string)
Retrieve cart's pageID from order.GatewayResult, previously prepared with PrepareGatewayResult() function
protected static int RetrievePageID(string gatewayResult)
Parameters
gatewayResult
stringThe gateway result.
Returns
- int
System.Int32.
SetOrderCompleteSafety(Order)
Performs the logic for setting the order complete
protected void SetOrderCompleteSafety(Order order)
Parameters
order
OrderThe order to set complete
SetTransactionState(Order, bool, double, string, string)
Save gateway's transaction sensibility parameters on order
protected void SetTransactionState(Order order, bool isSuccess, double transactionAmount, string transactionNumber, string transactionCardType)
Parameters
order
OrderThe order to set complete
isSuccess
boolif set to
true
[is success].transactionAmount
doubleThe transaction amount.
transactionNumber
stringThe transaction number.
transactionCardType
stringType of the transaction card.