The PaymentProcessor class is a bridge
for an IGatewayAdapter. This class is
responsible for processing IPaymentCommand
instances, while decoupling them from specific
payment processing implementations.
process(IPaymentCommand command) Processes the specified payment command using
the specified payment request and returns a
payment response.
Parameters: command - Payment command.
Processes the specified payment command using
the specified payment request and returns a
payment response.
Parameters: command - Payment command. response Payment response. throws: PaymentException - If an error occurs.