public class AbstractPaymentGatewayConfiguration extends Object implements PaymentGatewayConfiguration
| Constructor and Description |
|---|
AbstractPaymentGatewayConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
int |
getFailureReportingThreshold()
All payment gateway classes that intend to make an external call, either manually
from an HTTP Post or through an SDK which makes its own external call, should
extend the AbstractExternalPaymentGatewayCall class.
|
PaymentGatewayType |
getGatewayType()
Each payment module should have a unique subclass of
PaymentGatewayType with only a single type. |
boolean |
handlesAuthorize() |
boolean |
handlesAuthorizeAndCapture() |
boolean |
handlesCapture() |
boolean |
handlesMultiplePayments()
Denotes whether or not this payment provider supports multiple payments on an order.
|
boolean |
handlesMultipleShipment() |
boolean |
handlesPartialCapture() |
boolean |
handlesRecurringPayment() |
boolean |
handlesRefund() |
boolean |
handlesReverseAuthorize() |
boolean |
handlesSavedCustomerPayment() |
boolean |
handlesVoid() |
boolean |
isPerformAuthorizeAndCapture()
Gets the configured transaction type for this module.
|
void |
setFailureReportingThreshold(int failureReportingThreshold)
All payment gateway classes that intend to make an external call, either manually
from an HTTP Post or through an SDK which makes its own external call, should
extend the AbstractExternalPaymentGatewayCall class.
|
void |
setPerformAuthorizeAndCapture(boolean performAuthorizeAndCapture)
Sets the transaction type to 'AUTHORIZE AND CAPTURE'
for this gateway.
|
public boolean isPerformAuthorizeAndCapture()
PaymentGatewayConfigurationGets the configured transaction type for this module.
The possible initial transaction types for a gateway can be: 'Authorize' or 'Authorize and Capture'
This property is intended to be configurable
isPerformAuthorizeAndCapture in interface PaymentGatewayConfigurationorg.broadleafcommerce.common.payment.PaymentTransactionType}public void setPerformAuthorizeAndCapture(boolean performAuthorizeAndCapture)
PaymentGatewayConfigurationSets the transaction type to 'AUTHORIZE AND CAPTURE' for this gateway. If this is set to 'FALSE', then the gateway will only issue an 'AUTHORIZATION' request.
This property is intended to be configurable
setPerformAuthorizeAndCapture in interface PaymentGatewayConfigurationorg.broadleafcommerce.common.payment.PaymentTransactionType}public int getFailureReportingThreshold()
PaymentGatewayConfigurationAll payment gateway classes that intend to make an external call, either manually from an HTTP Post or through an SDK which makes its own external call, should extend the AbstractExternalPaymentGatewayCall class. One of the configuration parameters is the failure reporting threshold.
getFailureReportingThreshold in interface PaymentGatewayConfigurationAbstractExternalPaymentGatewayCall}public void setFailureReportingThreshold(int failureReportingThreshold)
PaymentGatewayConfigurationAll payment gateway classes that intend to make an external call, either manually from an HTTP Post or through an SDK which makes its own external call, should extend the AbstractExternalPaymentGatewayCall class. One of the configuration parameters is the failure reporting threshold.
setFailureReportingThreshold in interface PaymentGatewayConfigurationAbstractExternalPaymentGatewayCall}public boolean handlesAuthorize()
handlesAuthorize in interface PaymentGatewayConfigurationpublic boolean handlesCapture()
handlesCapture in interface PaymentGatewayConfigurationpublic boolean handlesAuthorizeAndCapture()
handlesAuthorizeAndCapture in interface PaymentGatewayConfigurationpublic boolean handlesReverseAuthorize()
handlesReverseAuthorize in interface PaymentGatewayConfigurationpublic boolean handlesVoid()
handlesVoid in interface PaymentGatewayConfigurationpublic boolean handlesRefund()
handlesRefund in interface PaymentGatewayConfigurationpublic boolean handlesPartialCapture()
handlesPartialCapture in interface PaymentGatewayConfigurationpublic boolean handlesMultipleShipment()
handlesMultipleShipment in interface PaymentGatewayConfigurationpublic boolean handlesRecurringPayment()
handlesRecurringPayment in interface PaymentGatewayConfigurationpublic boolean handlesSavedCustomerPayment()
handlesSavedCustomerPayment in interface PaymentGatewayConfigurationpublic boolean handlesMultiplePayments()
PaymentGatewayConfigurationDenotes whether or not this payment provider supports multiple payments on an order. For instance, a gift card provider might want to support multiple gift cards on a single order but a credit card provider may not support payment with multiple credit cards.
If a provider does not support multiple payments in an order then that means that all payments are deleted (archived) on an order whenever a new payment of that type is attempted to be added to the order.
handlesMultiplePayments in interface PaymentGatewayConfigurationPaymentGatewayCheckoutService}public PaymentGatewayType getGatewayType()
PaymentGatewayConfigurationEach payment module should have a unique subclass of PaymentGatewayType with only a single type. For instance,
the Braintree module would have a 'BraintreePaymentGatewayType' subclass which adds itself to the global static map.
In order to ensure that the class loader loads the extension of PaymentGatewayType, it is recommended
to add a simple bean definition to a module application context that is utilized by both the site and admin. Using
the Braintree module as an example again, this might look like:
<bean class="com.broadleafcommerce.payment.service.gateway.BraintreeGatewayType" />
getGatewayType in interface PaymentGatewayConfigurationCopyright © 2019. All rights reserved.