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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAccessCode(String applicationId, String tenantId) getDefaultLanguage(String applicationId, String tenantId) getDefaultReturnUrl(String applicationId, String tenantId) getFailureTypesByCode(String applicationId, String tenantId) getHardDeclineCodes(String applicationId, String tenantId) getMerchantId(String applicationId, String tenantId) Map of the APS response codes by transaction status fromDefaultTransactionStatusesvoidsetAccessCode(String accessCode) The Amazon Pay Service-provided access token for your REST API integrationvoidsetDefaultLanguage(String defaultLanguage) Default language to be used for APS API Calls in case per request parameter is not provided.voidsetDefaultReturnUrl(String defaultReturnUrl) Where the user should be redirected after they authenticate or cancel their payment on the payment method’s app or site.voidsetFailureTypesByCode(Map<String, String> failureTypesByCode) Map of failure types identified by their APS response message codevoidsetHardDeclineCodes(List<String> hardDeclineCodes) The list of APS response message codes that should be considered aPaymentDeclineType.HARDdecline.voidsetMerchantId(String merchantId) The Amazon Pay Service-provided merchant identifier for your REST API integrationvoidsetTransactionStatusByResponseCode(Map<String, String> transactionStatusByResponseCode) Map of the APS response codes by transaction status fromDefaultTransactionStatusesMethods inherited from class com.broadleafcommerce.paymentgateway.properties.DiscriminatedProperties
getApplication, getField, getTenant, setApplication, setTenant
-
Constructor Details
-
APSConfigurationProperties
public APSConfigurationProperties()
-
-
Method Details
-
getMerchantId
-
getAccessCode
-
getDefaultReturnUrl
-
getDefaultLanguage
-
getFailureTypesByCode
-
getHardDeclineCodes
-
setMerchantId
The Amazon Pay Service-provided merchant identifier for your REST API integration -
setAccessCode
The Amazon Pay Service-provided access token for your REST API integration -
setDefaultReturnUrl
Where the user should be redirected after they authenticate or cancel their payment on the payment method’s app or site. -
setDefaultLanguage
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
Map of the APS response codes by transaction status fromDefaultTransactionStatuses -
setFailureTypesByCode
Map of failure types identified by their APS response message code -
setHardDeclineCodes
The list of APS response message codes that should be considered aPaymentDeclineType.HARDdecline. 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
Map of the APS response codes by transaction status fromDefaultTransactionStatuses
-