Class APSConfigurationProperties

java.lang.Object
com.broadleafcommerce.paymentgateway.properties.DiscriminatedProperties<APSConfigurationProperties>
com.broadleafcommerce.payment.service.gateway.autoconfigure.APSConfigurationProperties

@ConfigurationProperties("broadleaf.amazonpaymentservices") public class APSConfigurationProperties extends com.broadleafcommerce.paymentgateway.properties.DiscriminatedProperties<APSConfigurationProperties>
This class have the properties defined in application-{profile}.properties/.yml file. It reads the required properties that starts with key broadleaf.amazonpaymentservices
Author:
Muhammad Salman Farooq
  • Constructor Details

    • APSConfigurationProperties

      public APSConfigurationProperties()
  • Method Details

    • getMerchantId

      public String getMerchantId(@Nullable String applicationId, @Nullable String tenantId)
    • getAccessCode

      public String getAccessCode(@Nullable String applicationId, @Nullable String tenantId)
    • getDefaultReturnUrl

      public String getDefaultReturnUrl(@Nullable String applicationId, @Nullable String tenantId)
    • getDefaultLanguage

      public String getDefaultLanguage(@Nullable String applicationId, @Nullable String tenantId)
    • getFailureTypesByCode

      public Map<String,String> getFailureTypesByCode(@Nullable String applicationId, @Nullable String tenantId)
    • getHardDeclineCodes

      public List<String> getHardDeclineCodes(@Nullable String applicationId, @Nullable String tenantId)
    • setMerchantId

      public void setMerchantId(String merchantId)
      The Amazon Pay Service-provided merchant identifier for your REST API integration
    • setAccessCode

      public void setAccessCode(String accessCode)
      The Amazon Pay Service-provided access token for your REST API integration
    • setDefaultReturnUrl

      public void setDefaultReturnUrl(String defaultReturnUrl)
      Where the user should be redirected after they authenticate or cancel their payment on the payment method’s app or site.
    • setDefaultLanguage

      public void setDefaultLanguage(String defaultLanguage)
      Default language to be used for APS API Calls in case per request parameter is not provided. This value should be a 2-letter ISO-639-1 code.
    • setTransactionStatusByResponseCode

      public void setTransactionStatusByResponseCode(Map<String,String> transactionStatusByResponseCode)
      Map of the APS response codes by transaction status from DefaultTransactionStatuses
    • setFailureTypesByCode

      public void setFailureTypesByCode(Map<String,String> failureTypesByCode)
      Map of failure types identified by their APS response message code
    • setHardDeclineCodes

      public void setHardDeclineCodes(List<String> hardDeclineCodes)
      The list of APS response message codes that should be considered a PaymentDeclineType.HARD decline. The categorization of decline types is primarily used with saved payment methods where a payment method should no longer be used if it's related to a hard decline. For example, if the payment gateway tells us that the payment method is stolen, then we should not allow it to be used anymore.
    • getTransactionStatusByResponseCode

      public Map<String,String> getTransactionStatusByResponseCode()
      Map of the APS response codes by transaction status from DefaultTransactionStatuses