org.broadleafcommerce.core.payment.service.module
Class AcceptAndPassthroughModule

java.lang.Object
  extended by org.broadleafcommerce.core.payment.service.module.AbstractModule
      extended by org.broadleafcommerce.core.payment.service.module.AcceptAndPassthroughModule
All Implemented Interfaces:
PaymentModule

public class AcceptAndPassthroughModule
extends AbstractModule

This payment module can be utilized when you wish to accept an order's payment without acting on it. For example, if the customer is going to pay by check and mail it to you, you will want to accept the order and not perform any actual payment transaction. In order to instantiate this module, you must inject a valid PaymentInfoType for which this module will be executed. If you are associating this module with several payment types, you should declare this bean as prototype For example:

Author:
Andre Azzolini (apazzolini)

Constructor Summary
AcceptAndPassthroughModule()
           
 
Method Summary
 PaymentResponseItem authorize(PaymentContext paymentContext)
           
 PaymentResponseItem authorizeAndDebit(PaymentContext paymentContext)
           
 PaymentResponseItem balance(PaymentContext paymentContext)
           
 PaymentResponseItem credit(PaymentContext paymentContext)
           
 PaymentResponseItem debit(PaymentContext paymentContext)
           
 Boolean isValidCandidate(PaymentInfoType paymentType)
           
 PaymentResponseItem reverseAuthorize(PaymentContext paymentContext)
           
 void setValidPaymentInfoType(String validType)
           
 PaymentResponseItem voidPayment(PaymentContext paymentContext)
           
 
Methods inherited from class org.broadleafcommerce.core.payment.service.module.AbstractModule
getNewResponseItem
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AcceptAndPassthroughModule

public AcceptAndPassthroughModule()
Method Detail

setValidPaymentInfoType

public void setValidPaymentInfoType(String validType)

authorize

public PaymentResponseItem authorize(PaymentContext paymentContext)
                              throws PaymentException
Throws:
PaymentException

reverseAuthorize

public PaymentResponseItem reverseAuthorize(PaymentContext paymentContext)
                                     throws PaymentException
Throws:
PaymentException

authorizeAndDebit

public PaymentResponseItem authorizeAndDebit(PaymentContext paymentContext)
                                      throws PaymentException
Throws:
PaymentException

debit

public PaymentResponseItem debit(PaymentContext paymentContext)
                          throws PaymentException
Throws:
PaymentException

credit

public PaymentResponseItem credit(PaymentContext paymentContext)
                           throws PaymentException
Throws:
PaymentException

voidPayment

public PaymentResponseItem voidPayment(PaymentContext paymentContext)
                                throws PaymentException
Throws:
PaymentException

balance

public PaymentResponseItem balance(PaymentContext paymentContext)
                            throws PaymentException
Throws:
PaymentException

isValidCandidate

public Boolean isValidCandidate(PaymentInfoType paymentType)


Copyright © 2013. All Rights Reserved.