Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Payments Namespace / PaymentEngine Class / ForceCapture Method / ForceCapture(Payment,Int32,Boolean) Method
The payment to force an authorize transaction on
Id of the payment gateway used for processing
Indicates whether the capture succeeded or failed.
Version
ForceCapture(Payment,Int32,Boolean) Method
Forces a capture transaction on a payment. Marks the capture transaction successful or unsuccessful based on the value of parameter 'successful'.
Syntax
public static void ForceCapture( 
   Payment payment,
   int paymentGatewayId,
   bool successful
)

Parameters

payment
The payment to force an authorize transaction on
paymentGatewayId
Id of the payment gateway used for processing
successful
Indicates whether the capture succeeded or failed.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also