Click or drag to resize
PaymentGatewayProcessorProcessPayment Method
Process payment using given provider.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 12.0.0
Syntax
C#
public PaymentResultInfo ProcessPayment(
	IPaymentGatewayProvider provider,
	IDictionary<string, Object> paymentData
)

Parameters

provider
Type: CMS.EcommerceIPaymentGatewayProvider
IPaymentGatewayProvider implementation.
paymentData
Type: System.Collections.GenericIDictionaryString, Object
Additional payment data.

Return Value

Type: PaymentResultInfo
Instance of PaymentResultInfo provided by given provider.

Implements

IPaymentGatewayProcessorProcessPayment(IPaymentGatewayProvider, IDictionaryString, Object)
Remarks
Implementation tries to use authorize and capture payment method base on given provider. If provider implements IDelayedPaymentGatewayProvider and allows to delayed capture UseDelayedPayment only capture and returned PaymentResultInfo contains transaction identifier. If provider implements IDirectPaymentGatewayProvider payment is done right-away. If neither IDelayedPaymentGatewayProvider or IDirectPaymentGatewayProvider is implemented, null value is returned.
See Also