The .Net POS Integration via PayClient makes it easy to implement
Pre-Authorizations and Captures, enabling you to support the payment workflows that your
merchants require.
Performing Pre-Authorizations
You can pre-authorize transactions by adding
AutoCapture(false)
to the
TransactionParameters
:
var transactionParameters = new TransactionParameters.Builder()
.Charge(10.00m, Currency.EUR)
.AutoCapture(false)
.Build();
To capture a transaction at a later time:
Locate the
transactionIdentifier
of the
transaction you want to capture.
Use the
TransactionParameters
builder to
create a capture object.
Similar to a refund, call the
AmendTransaction
on the
ITransactionModule
with the created
TransactionParameters
to start the capture process:
var captureParameters = new TransactionParameters.Builder()
.Capture("<transactionIdentifier>")
.Build();