C# 클래스 Rock.Financial.GatewayComponent

Base class for financial provider components
상속: Rock.Extension.Component
파일 보기 프로젝트 열기: NewSpring/Rock 1 사용 예제들

공개 메소드들

메소드 설명
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