Class PaymentInfo
java.lang.Object
com.broadleafcommerce.paymentgateway.domain.PaymentInfo
The Payment information that is used to add, update or remove the payment method properties,
using the provided payment type and additional attributes. This can be useful for example when
one application uses different configurations for different orders.
- Author:
- Dima Myroniuk (dmyroniuk)
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGeneral use map to capture any additional attributes.javax.money.CurrencyUnit
The currency unit used for the payment.The payment gateway used to process this payment.Map to capture any information about the payment method needed to perform gateway transactionsgetType()
The type of this payment like Credit Card or Gift Card.void
setAttributes
(Map<String, String> attributes) General use map to capture any additional attributes.void
setCurrency
(javax.money.CurrencyUnit currency) The currency unit used for the payment.void
setGatewayType
(String gatewayType) The payment gateway used to process this payment.void
setPaymentMethodProperties
(Map<String, String> paymentMethodProperties) Map to capture any information about the payment method needed to perform gateway transactionsvoid
The type of this payment like Credit Card or Gift Card.
-
Constructor Details
-
PaymentInfo
public PaymentInfo()
-
-
Method Details
-
getGatewayType
The payment gateway used to process this payment. -
getType
The type of this payment like Credit Card or Gift Card.- Returns:
- The type of this payment like Credit Card or Gift Card.
-
getPaymentMethodProperties
Map to capture any information about the payment method needed to perform gateway transactions- Returns:
- Map to capture any information about the payment method needed to perform gateway transactions
-
getAttributes
General use map to capture any additional attributes.- Returns:
- General use map to capture any additional attributes
-
getCurrency
public javax.money.CurrencyUnit getCurrency()The currency unit used for the payment.- Returns:
- The currency unit used for the payment.
-
setGatewayType
The payment gateway used to process this payment. -
setType
The type of this payment like Credit Card or Gift Card.- Parameters:
type
- The type of this payment like Credit Card or Gift Card.
-
setPaymentMethodProperties
Map to capture any information about the payment method needed to perform gateway transactions- Parameters:
paymentMethodProperties
- Map to capture any information about the payment method needed to perform gateway transactions
-
setAttributes
General use map to capture any additional attributes.- Parameters:
attributes
- General use map to capture any additional attributes
-
setCurrency
public void setCurrency(javax.money.CurrencyUnit currency) The currency unit used for the payment.- Parameters:
currency
- The currency unit used for the payment.
-