public class PaymentServiceImpl extends Object implements PaymentService
| Modifier and Type | Field and Description |
|---|---|
protected PaymentInfoService |
paymentInfoService |
protected PaymentModule |
paymentModule |
| Constructor and Description |
|---|
PaymentServiceImpl() |
protected PaymentModule paymentModule
protected PaymentInfoService paymentInfoService
public PaymentModule getPaymentModule()
public void setPaymentModule(PaymentModule paymentModule)
public PaymentResponseItem authorize(PaymentContext paymentContext) throws PaymentException
authorize in interface PaymentServicePaymentExceptionpublic PaymentResponseItem authorizeAndDebit(PaymentContext paymentContext) throws PaymentException
authorizeAndDebit in interface PaymentServicePaymentExceptionpublic PaymentResponseItem balance(PaymentContext paymentContext) throws PaymentException
balance in interface PaymentServicePaymentExceptionpublic PaymentResponseItem credit(PaymentContext paymentContext) throws PaymentException
credit in interface PaymentServicePaymentExceptionpublic PaymentResponseItem debit(PaymentContext paymentContext) throws PaymentException
debit in interface PaymentServicePaymentExceptionpublic PaymentResponseItem voidPayment(PaymentContext paymentContext) throws PaymentException
voidPayment in interface PaymentServicePaymentExceptionpublic PaymentResponseItem reverseAuthorize(PaymentContext paymentContext) throws PaymentException
reverseAuthorize in interface PaymentServicePaymentExceptionpublic PaymentResponseItem partialPayment(PaymentContext paymentContext) throws PaymentException
partialPayment in interface PaymentServicePaymentExceptionpublic Boolean isValidCandidate(PaymentInfoType paymentType)
isValidCandidate in interface PaymentServiceprotected void logResponseItem(PaymentContext paymentContext, PaymentResponseItem response, TransactionType transactionType)
protected void logPaymentStartEvent(PaymentContext paymentContext, TransactionType transactionType)
protected void logPaymentFinishEvent(PaymentContext paymentContext, TransactionType transactionType, Exception e)
Copyright © 2014. All Rights Reserved.