org.broadleafcommerce.payment.service.module
Class PayPalPaymentModule

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

public class PayPalPaymentModule
extends Object
implements org.broadleafcommerce.core.payment.service.module.PaymentModule

Author:
jfischer

Field Summary
protected  PayPalPaymentService payPalPaymentService
           
 
Constructor Summary
PayPalPaymentModule()
           
 
Method Summary
 org.broadleafcommerce.core.payment.domain.PaymentResponseItem authorize(org.broadleafcommerce.core.payment.service.PaymentContext paymentContext)
           
 org.broadleafcommerce.core.payment.domain.PaymentResponseItem authorizeAndDebit(org.broadleafcommerce.core.payment.service.PaymentContext paymentContext)
           
 org.broadleafcommerce.core.payment.domain.PaymentResponseItem balance(org.broadleafcommerce.core.payment.service.PaymentContext paymentContext)
           
protected  PayPalPaymentRequest buildBasicRequest(org.broadleafcommerce.core.payment.service.PaymentContext paymentContext, PayPalTransactionType transactionType)
           
protected  org.broadleafcommerce.core.payment.domain.PaymentResponseItem buildBasicResponse(PayPalPaymentResponse response)
           
protected  org.broadleafcommerce.core.payment.domain.PaymentResponseItem commonAuthorizeOrSale(org.broadleafcommerce.core.payment.service.PaymentContext paymentContext, PayPalTransactionType transactionType)
           
 org.broadleafcommerce.core.payment.domain.PaymentResponseItem credit(org.broadleafcommerce.core.payment.service.PaymentContext paymentContext)
           
 org.broadleafcommerce.core.payment.domain.PaymentResponseItem debit(org.broadleafcommerce.core.payment.service.PaymentContext paymentContext)
           
 PayPalDetailsResponse getExpressCheckoutDetails(PayPalDetailsRequest request)
           
 PayPalPaymentService getPayPalPaymentService()
           
 Boolean isValidCandidate(org.broadleafcommerce.core.payment.service.type.PaymentInfoType paymentType)
           
 org.broadleafcommerce.core.payment.domain.PaymentResponseItem reverseAuthorize(org.broadleafcommerce.core.payment.service.PaymentContext paymentContext)
           
protected  void setDecisionInformation(PayPalPaymentResponse response, org.broadleafcommerce.core.payment.domain.PaymentResponseItem responseItem)
           
 void setPayPalPaymentService(PayPalPaymentService payPalPaymentService)
           
protected  void setRefundInformation(PayPalPaymentResponse response, org.broadleafcommerce.core.payment.domain.PaymentResponseItem responseItem)
           
 org.broadleafcommerce.core.payment.domain.PaymentResponseItem voidPayment(org.broadleafcommerce.core.payment.service.PaymentContext paymentContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

payPalPaymentService

protected PayPalPaymentService payPalPaymentService
Constructor Detail

PayPalPaymentModule

public PayPalPaymentModule()
Method Detail

authorize

public org.broadleafcommerce.core.payment.domain.PaymentResponseItem authorize(org.broadleafcommerce.core.payment.service.PaymentContext paymentContext)
                                                                        throws org.broadleafcommerce.core.payment.service.exception.PaymentException
Specified by:
authorize in interface org.broadleafcommerce.core.payment.service.module.PaymentModule
Throws:
org.broadleafcommerce.core.payment.service.exception.PaymentException

reverseAuthorize

public org.broadleafcommerce.core.payment.domain.PaymentResponseItem reverseAuthorize(org.broadleafcommerce.core.payment.service.PaymentContext paymentContext)
                                                                               throws org.broadleafcommerce.core.payment.service.exception.PaymentException
Specified by:
reverseAuthorize in interface org.broadleafcommerce.core.payment.service.module.PaymentModule
Throws:
org.broadleafcommerce.core.payment.service.exception.PaymentException

debit

public org.broadleafcommerce.core.payment.domain.PaymentResponseItem debit(org.broadleafcommerce.core.payment.service.PaymentContext paymentContext)
                                                                    throws org.broadleafcommerce.core.payment.service.exception.PaymentException
Specified by:
debit in interface org.broadleafcommerce.core.payment.service.module.PaymentModule
Throws:
org.broadleafcommerce.core.payment.service.exception.PaymentException

authorizeAndDebit

public org.broadleafcommerce.core.payment.domain.PaymentResponseItem authorizeAndDebit(org.broadleafcommerce.core.payment.service.PaymentContext paymentContext)
                                                                                throws org.broadleafcommerce.core.payment.service.exception.PaymentException
Specified by:
authorizeAndDebit in interface org.broadleafcommerce.core.payment.service.module.PaymentModule
Throws:
org.broadleafcommerce.core.payment.service.exception.PaymentException

credit

public org.broadleafcommerce.core.payment.domain.PaymentResponseItem credit(org.broadleafcommerce.core.payment.service.PaymentContext paymentContext)
                                                                     throws org.broadleafcommerce.core.payment.service.exception.PaymentException
Specified by:
credit in interface org.broadleafcommerce.core.payment.service.module.PaymentModule
Throws:
org.broadleafcommerce.core.payment.service.exception.PaymentException

voidPayment

public org.broadleafcommerce.core.payment.domain.PaymentResponseItem voidPayment(org.broadleafcommerce.core.payment.service.PaymentContext paymentContext)
                                                                          throws org.broadleafcommerce.core.payment.service.exception.PaymentException
Specified by:
voidPayment in interface org.broadleafcommerce.core.payment.service.module.PaymentModule
Throws:
org.broadleafcommerce.core.payment.service.exception.PaymentException

balance

public org.broadleafcommerce.core.payment.domain.PaymentResponseItem balance(org.broadleafcommerce.core.payment.service.PaymentContext paymentContext)
                                                                      throws org.broadleafcommerce.core.payment.service.exception.PaymentException
Specified by:
balance in interface org.broadleafcommerce.core.payment.service.module.PaymentModule
Throws:
org.broadleafcommerce.core.payment.service.exception.PaymentException

getExpressCheckoutDetails

public PayPalDetailsResponse getExpressCheckoutDetails(PayPalDetailsRequest request)
                                                throws org.broadleafcommerce.core.payment.service.exception.PaymentException
Throws:
org.broadleafcommerce.core.payment.service.exception.PaymentException

isValidCandidate

public Boolean isValidCandidate(org.broadleafcommerce.core.payment.service.type.PaymentInfoType paymentType)
Specified by:
isValidCandidate in interface org.broadleafcommerce.core.payment.service.module.PaymentModule

commonAuthorizeOrSale

protected org.broadleafcommerce.core.payment.domain.PaymentResponseItem commonAuthorizeOrSale(org.broadleafcommerce.core.payment.service.PaymentContext paymentContext,
                                                                                              PayPalTransactionType transactionType)
                                                                                       throws org.broadleafcommerce.core.payment.service.exception.PaymentException
Throws:
org.broadleafcommerce.core.payment.service.exception.PaymentException

setDecisionInformation

protected void setDecisionInformation(PayPalPaymentResponse response,
                                      org.broadleafcommerce.core.payment.domain.PaymentResponseItem responseItem)

setRefundInformation

protected void setRefundInformation(PayPalPaymentResponse response,
                                    org.broadleafcommerce.core.payment.domain.PaymentResponseItem responseItem)

buildBasicRequest

protected PayPalPaymentRequest buildBasicRequest(org.broadleafcommerce.core.payment.service.PaymentContext paymentContext,
                                                 PayPalTransactionType transactionType)

buildBasicResponse

protected org.broadleafcommerce.core.payment.domain.PaymentResponseItem buildBasicResponse(PayPalPaymentResponse response)

getPayPalPaymentService

public PayPalPaymentService getPayPalPaymentService()

setPayPalPaymentService

public void setPayPalPaymentService(PayPalPaymentService payPalPaymentService)


Copyright © 2013. All Rights Reserved.