org.broadleafcommerce.core.payment.service.module
Class AcceptAndPassthroughModule
java.lang.Object
org.broadleafcommerce.core.payment.service.module.AbstractModule
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)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AcceptAndPassthroughModule
public AcceptAndPassthroughModule()
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 © 2012. All Rights Reserved.