Class PaymentCallbackTokenProperties

java.lang.Object
com.broadleafcommerce.paymentgateway.properties.DiscriminatedProperties<PaymentCallbackTokenProperties>
com.broadleafcommerce.paymentgateway.properties.PaymentCallbackTokenProperties

@ConfigurationProperties("broadleaf.payment.callback-token") public class PaymentCallbackTokenProperties extends DiscriminatedProperties<PaymentCallbackTokenProperties>
Author:
mariestandeven
  • Constructor Details

    • PaymentCallbackTokenProperties

      public PaymentCallbackTokenProperties()
  • Method Details

    • getAllowedCharacters

      public String getAllowedCharacters(@NonNull @NonNull String gatewayType, @Nullable String applicationId, @Nullable String tenantId)
    • getLength

      public int getLength(@NonNull @NonNull String gatewayType, @Nullable String applicationId, @Nullable String tenantId)
    • getTtl

      public Duration getTtl(@NonNull @NonNull String gatewayType, @Nullable String applicationId, @Nullable String tenantId)
    • setAllowedCharacters

      public void setAllowedCharacters(Map<String,String> allowedCharacters)
      The character set to use when generating payment callback tokens identified by PaymentGatewayType.name().

      Defaults to "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".

    • setLength

      public void setLength(Map<String,Integer> length)
      The length of a generated payment callback token identified by PaymentGatewayType.name().

      Defaults to 32.

    • setTtl

      public void setTtl(Map<String,Duration> ttl)
      The duration in which a payment callback token is valid identified by PaymentGatewayType.name().

      A negative or 0 value indicates that once a token is generated, it is valid forever (no expiration).

      Defaults to 60 minutes.