Click or drag to resize
Infosoft Logo

IOnlinePaymentService Interface

Defines operations necessary for performing credit card transactions with a custom provider as a backend.

Namespace: Infosoft.Common.Contracts.ServiceContracts.Economy.Payments
Assembly: Infosoft.Common.Contracts (in Infosoft.Common.Contracts.dll) Version: 4.00.0.0
Syntax
public interface IOnlinePaymentService : IBusinessService

The IOnlinePaymentService type exposes the following members.

Methods
 NameDescription
Public methodCancelPayment Cancels a payment. This may be used either before or after the transaction has been completed.
Public methodCapturePayment Captures a payment. This will perform the actual money withdrawal from the credit card.
Public methodCompletePayment Completes a payment. This must always be called when the user has successfully entered their credit card information to tell the provider that the payment is finished and the money is ready to be withdrawn.
Public methodPerformAgreementPayment Performs an agreement payment based on a payment agreement registered with the underlying provider.
Public methodQueryPayment Queries a payment. This will return useful information about the transaction, although the details vary depending on the underlying provider.
Public methodQueryPaymentGetByAgreementReference Queries a payment. This will return useful information about the transaction, although the details vary depending on the underlying provider.
Public methodRefundPayment Refund payment. Only captured payments may be refunded; if the state is "Completed" it means that no money has been transferred yet anyway, so no refund is necessary.
Public methodCode exampleStartPayment Starts a payment. This method must always be called in order to initiate a transaction.
Public methodUpdatePayment Updates a payment with externally retrieved provider references.
Top
See Also