C# Класс Rock.Financial.GatewayComponent

Base class for financial provider components
Наследование: Rock.Extension.Component
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AddScheduledPayment ( FinancialGateway financialGateway, PaymentSchedule schedule, PaymentInfo paymentInfo, string &errorMessage ) : FinancialScheduledTransaction

Adds the scheduled payment.

Authorize ( FinancialGateway financialGateway, PaymentInfo paymentInfo, string &errorMessage ) : FinancialTransaction

Authorizes the specified payment information.

CancelScheduledPayment ( FinancialScheduledTransaction transaction, string &errorMessage ) : bool

Cancels the scheduled payment.

Charge ( FinancialGateway financialGateway, PaymentInfo paymentInfo, string &errorMessage ) : FinancialTransaction

Charges the specified payment info.

Credit ( FinancialTransaction origTransaction, decimal amount, string comment, string &errorMessage ) : FinancialTransaction

Credits (Refunds) the specified transaction.

GatewayComponent ( ) : System

Initializes a new instance of the GatewayComponent class.

GetAttributeValue ( FinancialGateway financialGateway, string key ) : string

Gets the attribute value for the gateway

GetAttributeValue ( string key ) : string

Use GetAttributeValue( FinancialGateway financialGateway, string key) instead. gateway component attribute values are specific to the financial gateway instance (rather than global). This method will throw an exception

GetPayments ( FinancialGateway financialGateway, System.DateTime startDate, System.DateTime endDate, string &errorMessage ) : List

Gets the payments that have been processed for any scheduled transactions

GetReferenceNumber ( FinancialScheduledTransaction scheduledTransaction, string &errorMessage ) : string

Gets an optional reference number needed to process future transaction from saved account.

GetReferenceNumber ( FinancialTransaction transaction, string &errorMessage ) : string

Gets an optional reference number needed to process future transaction from saved account.

GetScheduledPaymentStatus ( FinancialScheduledTransaction transaction, string &errorMessage ) : bool

Gets the scheduled payment status.

LoadAttributes ( FinancialGateway financialGateway ) : void

Loads the attributes for the financial gateway.

PromptForBankAccountName ( FinancialGateway financialGateway ) : bool

Prompts the name of for bank account.

PromptForBillingAddress ( FinancialGateway financialGateway ) : bool

Gets a value indicating whether [address required].

PromptForNameOnCard ( FinancialGateway financialGateway ) : bool

Gets a value indicating whether the gateway requires the name on card for CC processing

ReactivateScheduledPayment ( FinancialScheduledTransaction transaction, string &errorMessage ) : bool

Reactivates the scheduled payment.

SupportsSavedAccount ( DefinedValueCache currencyType ) : bool

Returnes a boolean value indicating if 'Saved Account' functionality is supported for the given currency type.

SupportsSavedAccount ( bool isRepeating ) : bool

Returnes a boolean value indicating if 'Saved Account' functionality is supported for frequency (i.e. one-time vs repeating )

UpdateScheduledPayment ( FinancialScheduledTransaction transaction, PaymentInfo paymentInfo, string &errorMessage ) : bool

Updates the scheduled payment.

Описание методов

AddScheduledPayment() публичный абстрактный метод

Adds the scheduled payment.
public abstract AddScheduledPayment ( FinancialGateway financialGateway, PaymentSchedule schedule, PaymentInfo paymentInfo, string &errorMessage ) : FinancialScheduledTransaction
financialGateway FinancialGateway The financial gateway.
schedule PaymentSchedule The schedule.
paymentInfo PaymentInfo The payment info.
errorMessage string The error message.
Результат FinancialScheduledTransaction

Authorize() публичный метод

Authorizes the specified payment information.
public Authorize ( FinancialGateway financialGateway, PaymentInfo paymentInfo, string &errorMessage ) : FinancialTransaction
financialGateway FinancialGateway The financial gateway.
paymentInfo PaymentInfo The payment information.
errorMessage string The error message.
Результат FinancialTransaction

CancelScheduledPayment() публичный абстрактный метод

Cancels the scheduled payment.
public abstract CancelScheduledPayment ( FinancialScheduledTransaction transaction, string &errorMessage ) : bool
transaction FinancialScheduledTransaction The transaction.
errorMessage string The error message.
Результат bool

Charge() публичный абстрактный метод

Charges the specified payment info.
public abstract Charge ( FinancialGateway financialGateway, PaymentInfo paymentInfo, string &errorMessage ) : FinancialTransaction
financialGateway FinancialGateway The financial gateway.
paymentInfo PaymentInfo The payment info.
errorMessage string The error message.
Результат FinancialTransaction

Credit() публичный абстрактный метод

Credits (Refunds) the specified transaction.
public abstract Credit ( FinancialTransaction origTransaction, decimal amount, string comment, string &errorMessage ) : FinancialTransaction
origTransaction FinancialTransaction The original transaction.
amount decimal The amount.
comment string The comment.
errorMessage string The error message.
Результат FinancialTransaction

GatewayComponent() публичный метод

Initializes a new instance of the GatewayComponent class.
public GatewayComponent ( ) : System
Результат System

GetAttributeValue() публичный метод

Gets the attribute value for the gateway
public GetAttributeValue ( FinancialGateway financialGateway, string key ) : string
financialGateway FinancialGateway The financial gateway.
key string The key.
Результат string

GetAttributeValue() публичный метод

Use GetAttributeValue( FinancialGateway financialGateway, string key) instead. gateway component attribute values are specific to the financial gateway instance (rather than global). This method will throw an exception
Gateway Component attributes are saved specific to the financial gateway, which requires that the current financial gateway is included in order to load or retrieve values. Use the GetAttributeValue( FinancialGateway financialGateway, string key ) method instead.
public GetAttributeValue ( string key ) : string
key string The key.
Результат string

GetPayments() публичный абстрактный метод

Gets the payments that have been processed for any scheduled transactions
public abstract GetPayments ( FinancialGateway financialGateway, System.DateTime startDate, System.DateTime endDate, string &errorMessage ) : List
financialGateway FinancialGateway The financial gateway.
startDate System.DateTime The start date.
endDate System.DateTime The end date.
errorMessage string The error message.
Результат List

GetReferenceNumber() публичный абстрактный метод

Gets an optional reference number needed to process future transaction from saved account.
public abstract GetReferenceNumber ( FinancialScheduledTransaction scheduledTransaction, string &errorMessage ) : string
scheduledTransaction FinancialScheduledTransaction The scheduled transaction.
errorMessage string The error message.
Результат string

GetReferenceNumber() публичный абстрактный метод

Gets an optional reference number needed to process future transaction from saved account.
public abstract GetReferenceNumber ( FinancialTransaction transaction, string &errorMessage ) : string
transaction FinancialTransaction The transaction.
errorMessage string The error message.
Результат string

GetScheduledPaymentStatus() публичный абстрактный метод

Gets the scheduled payment status.
public abstract GetScheduledPaymentStatus ( FinancialScheduledTransaction transaction, string &errorMessage ) : bool
transaction FinancialScheduledTransaction The transaction.
errorMessage string The error message.
Результат bool

LoadAttributes() публичный метод

Loads the attributes for the financial gateway.
public LoadAttributes ( FinancialGateway financialGateway ) : void
financialGateway FinancialGateway The financial gateway.
Результат void

PromptForBankAccountName() публичный метод

Prompts the name of for bank account.
public PromptForBankAccountName ( FinancialGateway financialGateway ) : bool
financialGateway FinancialGateway The financial gateway.
Результат bool

PromptForBillingAddress() публичный метод

Gets a value indicating whether [address required].
public PromptForBillingAddress ( FinancialGateway financialGateway ) : bool
financialGateway FinancialGateway The financial gateway.
Результат bool

PromptForNameOnCard() публичный метод

Gets a value indicating whether the gateway requires the name on card for CC processing
public PromptForNameOnCard ( FinancialGateway financialGateway ) : bool
financialGateway FinancialGateway The financial gateway.
Результат bool

ReactivateScheduledPayment() публичный абстрактный метод

Reactivates the scheduled payment.
public abstract ReactivateScheduledPayment ( FinancialScheduledTransaction transaction, string &errorMessage ) : bool
transaction FinancialScheduledTransaction The transaction.
errorMessage string The error message.
Результат bool

SupportsSavedAccount() публичный метод

Returnes a boolean value indicating if 'Saved Account' functionality is supported for the given currency type.
public SupportsSavedAccount ( DefinedValueCache currencyType ) : bool
currencyType DefinedValueCache Type of the currency.
Результат bool

SupportsSavedAccount() публичный метод

Returnes a boolean value indicating if 'Saved Account' functionality is supported for frequency (i.e. one-time vs repeating )
public SupportsSavedAccount ( bool isRepeating ) : bool
isRepeating bool if set to true [is repeating].
Результат bool

UpdateScheduledPayment() публичный абстрактный метод

Updates the scheduled payment.
public abstract UpdateScheduledPayment ( FinancialScheduledTransaction transaction, PaymentInfo paymentInfo, string &errorMessage ) : bool
transaction FinancialScheduledTransaction The transaction.
paymentInfo PaymentInfo The payment info.
errorMessage string The error message.
Результат bool