Implement this method to get the card balance from the external system.
Syntax
abstract Balance
balanceInquiry
(
final Customer
cardHolder
,
final Card
card
) throws UnsupportedOperationException, PaymentHandlerException
Parameters
-
cardHolder –
the card holder of this card
-
card –
the clear text card data
Returns
the current balance.
Exceptions
-
PaymentHandlerException –
if the payment processor call fails, communicate this by throwing a PaymentHandlerException.
-
UnsupportedOperationException –
if the payment card processor does not support balance inquiries, simply throw an UnsupportedOperationException in your implementation
Usage
the current balance.