Class PaymentInfo

java.lang.Object
com.broadleafcommerce.paymentgateway.domain.PaymentInfo

public class PaymentInfo extends Object
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 Details

    • PaymentInfo

      public PaymentInfo()
  • Method Details

    • getGatewayType

      public String getGatewayType()
      The payment gateway used to process this payment.
    • getType

      public String 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

      public Map<String,String> 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

      public Map<String,String> 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

      public void setGatewayType(String gatewayType)
      The payment gateway used to process this payment.
    • setType

      public void setType(String type)
      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

      public void setPaymentMethodProperties(Map<String,String> paymentMethodProperties)
      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

      public void setAttributes(Map<String,String> attributes)
      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.