C# Class Atomia.Web.Plugin.PublicOrder.Helpers.PaymentHelper

Payment helper
Exibir arquivo Open project: atomia/OrderPage

Public Methods

Method Description
CreatePaymentTransaction ( Controller controller, OrderServiceReferences order, decimal paidAmount, string returnUrl, PublicPaymentTransaction transaction ) : string

Creates the payment transaction.

FillPaymentTransactionForOrder ( OrderServiceReferences order, System.Web.HttpRequestBase request, decimal paidAmount, string paymentMethod ) : PublicPaymentTransaction

Fills the payment transaction for invoice.

Method Details

CreatePaymentTransaction() public static method

Creates the payment transaction.
public static CreatePaymentTransaction ( Controller controller, OrderServiceReferences order, decimal paidAmount, string returnUrl, PublicPaymentTransaction transaction ) : string
controller Controller The controller.
order OrderServiceReferences The order.
paidAmount decimal The paid amount.
returnUrl string The return URL.
transaction PublicPaymentTransaction The transaction.
return string

FillPaymentTransactionForOrder() public static method

Fills the payment transaction for invoice.
public static FillPaymentTransactionForOrder ( OrderServiceReferences order, System.Web.HttpRequestBase request, decimal paidAmount, string paymentMethod ) : PublicPaymentTransaction
order OrderServiceReferences The order.
request System.Web.HttpRequestBase The request.
paidAmount decimal The paid amount.
paymentMethod string The payment method.
return PublicPaymentTransaction