C# Class Rock.Financial.GatewayComponent

Base class for financial provider components
Inheritance: Rock.Extension.Component
Afficher le fichier Open project: NewSpring/Rock Class Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

AddScheduledPayment() public abstract méthode

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.
Résultat FinancialScheduledTransaction

Authorize() public méthode

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.
Résultat FinancialTransaction

CancelScheduledPayment() public abstract méthode

Cancels the scheduled payment.
public abstract CancelScheduledPayment ( FinancialScheduledTransaction transaction, string &errorMessage ) : bool
transaction FinancialScheduledTransaction The transaction.
errorMessage string The error message.
Résultat bool

Charge() public abstract méthode

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.
Résultat FinancialTransaction

Credit() public abstract méthode

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.
Résultat FinancialTransaction

GatewayComponent() public méthode

Initializes a new instance of the GatewayComponent class.
public GatewayComponent ( ) : System
Résultat System

GetAttributeValue() public méthode

Gets the attribute value for the gateway
public GetAttributeValue ( FinancialGateway financialGateway, string key ) : string
financialGateway FinancialGateway The financial gateway.
key string The key.
Résultat string

GetAttributeValue() public méthode

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.
Résultat string

GetPayments() public abstract méthode

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.
Résultat List

GetReferenceNumber() public abstract méthode

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.
Résultat string

GetReferenceNumber() public abstract méthode

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.
Résultat string

GetScheduledPaymentStatus() public abstract méthode

Gets the scheduled payment status.
public abstract GetScheduledPaymentStatus ( FinancialScheduledTransaction transaction, string &errorMessage ) : bool
transaction FinancialScheduledTransaction The transaction.
errorMessage string The error message.
Résultat bool

LoadAttributes() public méthode

Loads the attributes for the financial gateway.
public LoadAttributes ( FinancialGateway financialGateway ) : void
financialGateway FinancialGateway The financial gateway.
Résultat void

PromptForBankAccountName() public méthode

Prompts the name of for bank account.
public PromptForBankAccountName ( FinancialGateway financialGateway ) : bool
financialGateway FinancialGateway The financial gateway.
Résultat bool

PromptForBillingAddress() public méthode

Gets a value indicating whether [address required].
public PromptForBillingAddress ( FinancialGateway financialGateway ) : bool
financialGateway FinancialGateway The financial gateway.
Résultat bool

PromptForNameOnCard() public méthode

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.
Résultat bool

ReactivateScheduledPayment() public abstract méthode

Reactivates the scheduled payment.
public abstract ReactivateScheduledPayment ( FinancialScheduledTransaction transaction, string &errorMessage ) : bool
transaction FinancialScheduledTransaction The transaction.
errorMessage string The error message.
Résultat bool

SupportsSavedAccount() public méthode

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.
Résultat bool

SupportsSavedAccount() public méthode

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].
Résultat bool

UpdateScheduledPayment() public abstract méthode

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.
Résultat bool