org.broadleafcommerce.core.payment.service
Class PaymentServiceImpl

java.lang.Object
  extended by org.broadleafcommerce.core.payment.service.PaymentServiceImpl
All Implemented Interfaces:
PaymentService

public class PaymentServiceImpl
extends java.lang.Object
implements PaymentService


Field Summary
protected  PaymentInfoService paymentInfoService
           
protected  PaymentModule paymentModule
           
 
Constructor Summary
PaymentServiceImpl()
           
 
Method Summary
 PaymentResponseItem authorize(PaymentContext paymentContext)
           
 PaymentResponseItem authorizeAndDebit(PaymentContext paymentContext)
           
 PaymentResponseItem balance(PaymentContext paymentContext)
           
 PaymentResponseItem credit(PaymentContext paymentContext)
           
 PaymentResponseItem debit(PaymentContext paymentContext)
           
 PaymentModule getPaymentModule()
           
 java.lang.Boolean isValidCandidate(PaymentInfoType paymentType)
           
protected  void logPaymentFinishEvent(PaymentContext paymentContext, TransactionType transactionType, java.lang.Exception e)
           
protected  void logPaymentStartEvent(PaymentContext paymentContext, TransactionType transactionType)
           
protected  void logResponseItem(PaymentContext paymentContext, PaymentResponseItem response, TransactionType transactionType)
           
 PaymentResponseItem reverseAuthorize(PaymentContext paymentContext)
           
 void setPaymentModule(PaymentModule paymentModule)
           
 PaymentResponseItem voidPayment(PaymentContext paymentContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

paymentModule

protected PaymentModule paymentModule

paymentInfoService

protected PaymentInfoService paymentInfoService
Constructor Detail

PaymentServiceImpl

public PaymentServiceImpl()
Method Detail

getPaymentModule

public PaymentModule getPaymentModule()

setPaymentModule

public void setPaymentModule(PaymentModule paymentModule)

authorize

public PaymentResponseItem authorize(PaymentContext paymentContext)
                              throws PaymentException
Specified by:
authorize in interface PaymentService
Throws:
PaymentException

authorizeAndDebit

public PaymentResponseItem authorizeAndDebit(PaymentContext paymentContext)
                                      throws PaymentException
Specified by:
authorizeAndDebit in interface PaymentService
Throws:
PaymentException

balance

public PaymentResponseItem balance(PaymentContext paymentContext)
                            throws PaymentException
Specified by:
balance in interface PaymentService
Throws:
PaymentException

credit

public PaymentResponseItem credit(PaymentContext paymentContext)
                           throws PaymentException
Specified by:
credit in interface PaymentService
Throws:
PaymentException

debit

public PaymentResponseItem debit(PaymentContext paymentContext)
                          throws PaymentException
Specified by:
debit in interface PaymentService
Throws:
PaymentException

voidPayment

public PaymentResponseItem voidPayment(PaymentContext paymentContext)
                                throws PaymentException
Specified by:
voidPayment in interface PaymentService
Throws:
PaymentException

reverseAuthorize

public PaymentResponseItem reverseAuthorize(PaymentContext paymentContext)
                                     throws PaymentException
Specified by:
reverseAuthorize in interface PaymentService
Throws:
PaymentException

isValidCandidate

public java.lang.Boolean isValidCandidate(PaymentInfoType paymentType)
Specified by:
isValidCandidate in interface PaymentService

logResponseItem

protected void logResponseItem(PaymentContext paymentContext,
                               PaymentResponseItem response,
                               TransactionType transactionType)

logPaymentStartEvent

protected void logPaymentStartEvent(PaymentContext paymentContext,
                                    TransactionType transactionType)

logPaymentFinishEvent

protected void logPaymentFinishEvent(PaymentContext paymentContext,
                                     TransactionType transactionType,
                                     java.lang.Exception e)


Copyright © 2012. All Rights Reserved.