C# Class Rock.Financial.TestGateway

Inheritance: GatewayComponent
Datei anzeigen Open project: NewSpring/Rock

Public Methods

Method Description
AddScheduledPayment ( FinancialGateway financialGateway, PaymentSchedule schedule, PaymentInfo paymentInfo, string &errorMessage ) : FinancialScheduledTransaction

Adds the scheduled payment.

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 transaction, decimal amount, string comment, string &errorMessage ) : FinancialTransaction

Credits the specified transaction.

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 identifier needed to process future transaction from saved account.

GetReferenceNumber ( FinancialTransaction transaction, string &errorMessage ) : string

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

GetScheduledPaymentStatus ( FinancialScheduledTransaction transaction, string &errorMessage ) : bool

Gets the scheduled payment status.

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.

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

Updates the scheduled payment.

Method Details

AddScheduledPayment() public method

Adds the scheduled payment.
public 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.
return FinancialScheduledTransaction

CancelScheduledPayment() public method

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

Charge() public method

Charges the specified payment info.
public Charge ( FinancialGateway financialGateway, PaymentInfo paymentInfo, string &errorMessage ) : FinancialTransaction
financialGateway FinancialGateway The financial gateway.
paymentInfo PaymentInfo The payment info.
errorMessage string The error message.
return FinancialTransaction

Credit() public method

Credits the specified transaction.
public Credit ( FinancialTransaction transaction, decimal amount, string comment, string &errorMessage ) : FinancialTransaction
transaction FinancialTransaction The transaction.
amount decimal The amount.
comment string The comment.
errorMessage string The error message.
return FinancialTransaction

GetPayments() public method

Gets the payments that have been processed for any scheduled transactions
public 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.
return List

GetReferenceNumber() public method

Gets an optional reference identifier needed to process future transaction from saved account.
public GetReferenceNumber ( FinancialScheduledTransaction scheduledTransaction, string &errorMessage ) : string
scheduledTransaction FinancialScheduledTransaction The scheduled transaction.
errorMessage string The error message.
return string

GetReferenceNumber() public method

Gets an optional reference identifier needed to process future transaction from saved account.
public GetReferenceNumber ( FinancialTransaction transaction, string &errorMessage ) : string
transaction FinancialTransaction The transaction.
errorMessage string The error message.
return string

GetScheduledPaymentStatus() public method

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

PromptForBankAccountName() public method

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

PromptForBillingAddress() public method

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

PromptForNameOnCard() public method

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.
return bool

ReactivateScheduledPayment() public method

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

UpdateScheduledPayment() public method

Updates the scheduled payment.
public UpdateScheduledPayment ( FinancialScheduledTransaction transaction, PaymentInfo paymentInfo, string &errorMessage ) : bool
transaction FinancialScheduledTransaction The transaction.
paymentInfo PaymentInfo The payment info.
errorMessage string The error message.
return bool