Class DefaultPassthroughTransactionService
java.lang.Object
com.broadleafcommerce.paymentgateway.service.passthrough.DefaultPassthroughTransactionService
- All Implemented Interfaces:
PassthroughTransactionService,PaymentGatewayTransactionService,PaymentGatewayTypeAware
public class DefaultPassthroughTransactionService
extends Object
implements PassthroughTransactionService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthorize(PaymentRequest paymentRequest) Responsible for executing aDefaultTransactionTypes.AUTHORIZEtransaction against the payment gateway, based on the providedPaymentRequest, & returning the transaction's results in the form of aPaymentResponse.authorizeAndCapture(PaymentRequest paymentRequest) Responsible for executing aDefaultTransactionTypes.AUTHORIZE_AND_CAPTUREtransaction against the payment gateway, based on the providedPaymentRequest, & returning the transaction's results in the form of aPaymentResponse.capture(PaymentRequest paymentRequest) Responsible for executing aDefaultTransactionTypes.CAPTUREtransaction against the payment gateway, based on the providedPaymentRequest, & returning the transaction's results in the form of aPaymentResponse.detachedCredit(PaymentRequest paymentRequest) Responsible for executing aDefaultTransactionTypes.DETACHED_CREDITtransaction against the payment gateway, based on the providedPaymentRequest, & returning the transaction's results in the form of aPaymentResponse.Each payment module should have a unique implementation ofPaymentGatewayTypewith only a single type.refund(PaymentRequest paymentRequest) Responsible for executing aDefaultTransactionTypes.REFUNDtransaction against the payment gateway, based on the providedPaymentRequest, & returning the transaction's results in the form of aPaymentResponse.reverseAuthorize(PaymentRequest paymentRequest) Responsible for executing aDefaultTransactionTypes.REVERSE_AUTHtransaction against the payment gateway, based on the providedPaymentRequest, & returning the transaction's results in the form of aPaymentResponse.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.broadleafcommerce.paymentgateway.service.PaymentGatewayTransactionService
identifyParentTransactionReferenceIfExists, identifyTransactionTypeFromTransactionResults
-
Constructor Details
-
DefaultPassthroughTransactionService
public DefaultPassthroughTransactionService()
-
-
Method Details
-
authorize
Description copied from interface:PaymentGatewayTransactionServiceResponsible for executing aDefaultTransactionTypes.AUTHORIZEtransaction against the payment gateway, based on the providedPaymentRequest, & returning the transaction's results in the form of aPaymentResponse.- Specified by:
authorizein interfacePaymentGatewayTransactionService- Parameters:
paymentRequest- The request payload that must be converted into the gateway's expected payload- Returns:
- The results of the authorization transaction
- Throws:
PaymentException
-
capture
Description copied from interface:PaymentGatewayTransactionServiceResponsible for executing aDefaultTransactionTypes.CAPTUREtransaction against the payment gateway, based on the providedPaymentRequest, & returning the transaction's results in the form of aPaymentResponse.- Specified by:
capturein interfacePaymentGatewayTransactionService- Parameters:
paymentRequest- The request payload that must be converted into the gateway's expected payload- Returns:
- The results of the capture transaction
- Throws:
PaymentException
-
authorizeAndCapture
Description copied from interface:PaymentGatewayTransactionServiceResponsible for executing aDefaultTransactionTypes.AUTHORIZE_AND_CAPTUREtransaction against the payment gateway, based on the providedPaymentRequest, & returning the transaction's results in the form of aPaymentResponse.- Specified by:
authorizeAndCapturein interfacePaymentGatewayTransactionService- Parameters:
paymentRequest- The request payload that must be converted into the gateway's expected payload- Returns:
- The results of the authorization & capture transaction
- Throws:
PaymentException
-
reverseAuthorize
Description copied from interface:PaymentGatewayTransactionServiceResponsible for executing aDefaultTransactionTypes.REVERSE_AUTHtransaction against the payment gateway, based on the providedPaymentRequest, & returning the transaction's results in the form of aPaymentResponse.- Specified by:
reverseAuthorizein interfacePaymentGatewayTransactionService- Parameters:
paymentRequest- The request payload that must be converted into the gateway's expected payload- Returns:
- The results of the reverse authorization transaction
- Throws:
PaymentException
-
refund
Description copied from interface:PaymentGatewayTransactionServiceResponsible for executing aDefaultTransactionTypes.REFUNDtransaction against the payment gateway, based on the providedPaymentRequest, & returning the transaction's results in the form of aPaymentResponse.- Specified by:
refundin interfacePaymentGatewayTransactionService- Parameters:
paymentRequest- The request payload that must be converted into the gateway's expected payload- Returns:
- The results of the refund transaction
- Throws:
PaymentException
-
detachedCredit
Description copied from interface:PaymentGatewayTransactionServiceResponsible for executing aDefaultTransactionTypes.DETACHED_CREDITtransaction against the payment gateway, based on the providedPaymentRequest, & returning the transaction's results in the form of aPaymentResponse.- Specified by:
detachedCreditin interfacePaymentGatewayTransactionService- Parameters:
paymentRequest- The request payload that must be converted into the gateway's expected payload- Returns:
- The results of the void transaction
- Throws:
PaymentException
-
getGatewayType
Description copied from interface:PaymentGatewayTypeAwareEach payment module should have a unique implementation ofPaymentGatewayTypewith only a single type. For instance, the Braintree module would have a 'BraintreePaymentGatewayType' implementation which defines its gateway type key.- Specified by:
getGatewayTypein interfacePaymentGatewayTypeAware- Returns:
- The
PaymentGatewayTyperelated to implementing resource
-