Implement a capture of a previous authorization at the payment card processor interface.
Syntax
abstract void
capture
(
Customer
cardHolder
,
Card
card
,
Transaction
mainTxn
,
SubTransaction
subTxn
,
Authorisation
authorisation
,
long
amount
) throws PaymentHandlerException
Parameters
-
cardHolder –
the card holder of this card
-
card –
the clear text card data
-
mainTxn –
the current transaction
-
subTxn –
the current subtransaction, remember setting a payer reference if applicable
-
authorisation –
the earlier authorisation subtransaction, you can get reference ids from there if provided earlier in the authorisation implementation
-
amount –
the amount that should be charged
Exceptions
-
PaymentHandlerException –
if the payment processor call fails