Enum Class DefaultTransactionTypes
- All Implemented Interfaces:
TransactionType
,Serializable
,Comparable<DefaultTransactionTypes>
,Constable
- Author:
- Elbert Bautista (elbertbautista), Chris Kittrell (ckittrell)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionFunds have been authorized for capture.Funds have been captured/authorized all at once.Funds have been charged/submitted/debited from the customer and payment is complete.Some payment processors allow you to issue credit to a customer that is not tied to an initialAUTHORIZE
orAUTHORIZE_AND_CAPTURE
transaction.Funds have been refunded/credited.The reverse of anAUTHORIZE
transaction. -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isAuthorize
(String transactionType) static boolean
isAuthorizeAndCapture
(String transactionType) static boolean
static boolean
isDetachedCredit
(String transactionType) static boolean
static boolean
isReverseAuth
(String transactionType) static DefaultTransactionTypes
Returns the enum constant of this class with the specified name.static DefaultTransactionTypes[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface com.broadleafcommerce.paymentgateway.domain.enums.TransactionType
name
-
Enum Constant Details
-
AUTHORIZE
Funds have been authorized for capture. This might appear as a 'pending' transaction on a customer's credit card statement -
REVERSE_AUTH
The reverse of anAUTHORIZE
transaction. This can only occur after funds have beenauthorized
and before funds have beencaptured
. -
CAPTURE
Funds have been charged/submitted/debited from the customer and payment is complete. Can ONLY occur after an amount has been authorized (AUTHORIZE
). -
AUTHORIZE_AND_CAPTURE
Funds have been captured/authorized all at once. While this might be the simplest to implement from an order management perspective, the recommended approach is to
AUTHORIZE
and thenCAPTURE
in separate transactions and at separate times. For instance, anAUTHORIZE
would happen once the order has completed checkout but then aCAPTURE
would happen once the order has shipped.NOTE: Many gateways like to refer to this as also a SALE transaction.
This should be treated the exact same as a
CAPTURE
. -
REFUND
Funds have been refunded/credited. This can ONLY occur after funds have been
captured
. This should only be used when money goes back to a customer. This assumes that there will be a parentAUTHORIZE_AND_CAPTURE
orCAPTURE
transaction that this can be tied back to.NOTE: This can also be referred to as a "follow-on credit"
-
DETACHED_CREDIT
Some payment processors allow you to issue credit to a customer that is not tied to an initial
AUTHORIZE
orAUTHORIZE_AND_CAPTURE
transaction. Most payment gateways disable this feature by default because it is against card association (e.g. Visa, MasterCard) rules. However, there may be legitimate instances where you had a sale transaction but are not able to issue a refund (e.g. closed account of original payment etc...) Please contact your payment gateway provider to see how to enable this feature.NOTE: This can also be referred to as a "blind credit" or "stand-alone credit"
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
isAuthorize
-
isReverseAuth
-
isCapture
-
isAuthorizeAndCapture
-
isRefund
-
isDetachedCredit
-