Class SavedPaymentMethodInfo

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

public class SavedPaymentMethodInfo extends Object
The information that is used to build the customer notification for the saved payment method.
Author:
Dima Myroniuk (dmyroniuk)
See Also:
  • Constructor Details

    • SavedPaymentMethodInfo

      public SavedPaymentMethodInfo()
  • Method Details

    • getPaymentType

      public String getPaymentType()
      The payment type for the saved payment method.
      Returns:
      the payment type
    • getGatewayReferenceId

      @Nullable public String getGatewayReferenceId()
      The ID of the object known by the payment gateway that was created to set up the saved payment method.

      For example, this can be the SetupIntent ID for the STRIPE payment gateway.

      Returns:
      the gateway reference ID
    • getAdditionalData

      public Map<String,Object> getAdditionalData()
      Any additional data needed to build the notification.
      Returns:
      the additional data
    • setPaymentType

      public void setPaymentType(String paymentType)
      The payment type for the saved payment method.
      Parameters:
      paymentType - the payment type
    • setGatewayReferenceId

      public void setGatewayReferenceId(@Nullable String gatewayReferenceId)
      The ID of the object known by the payment gateway that was created to set up the saved payment method.

      For example, this can be the SetupIntent ID for the STRIPE payment gateway.

      Parameters:
      gatewayReferenceId - the gateway reference ID
    • setAdditionalData

      public void setAdditionalData(Map<String,Object> additionalData)
      Any additional data needed to build the notification.
      Parameters:
      additionalData - the additional data