Class StripeRestConfigurationProperties
java.lang.Object
com.broadleafcommerce.paymentgateway.properties.DiscriminatedProperties<StripeRestConfigurationProperties>
com.broadleafcommerce.payment.service.gateway.StripeRestConfigurationProperties
@ConfigurationProperties("broadleaf.stripe.rest")
public class StripeRestConfigurationProperties
extends com.broadleafcommerce.paymentgateway.properties.DiscriminatedProperties<StripeRestConfigurationProperties>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe list of payment gateway response codes that should be considered aPaymentDeclineType.HARDdecline.The list of decline codes.Deprecated.getPaymentIntentReturnUrl(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest) getPaymentIntentReturnUrl(String applicationId, String tenantId) getPrivateApiKey(String applicationId, String tenantId) Deprecated.this is not used in the gateway but on the frontendbooleanDeprecated.in favor ofgetShouldIncludeLevel3Data(String, String)booleangetShouldIncludeLevel3Data(String applicationId, String tenantId) getWebhookEndpointSecret(String applicationId, String tenantId) protected booleanisAbsoluteUrl(@NonNull String url) voidsetHardDeclineCodes(List<String> hardDeclineCodes) The list of payment gateway response codes that should be considered aPaymentDeclineType.HARDdecline.voidsetInvalidPaymentMethodDelcineCodes(List<String> invalidPaymentMethodDelcineCodes) The list of decline codes.voidsetPaymentIntentReturnUrl(String paymentIntentReturnUrl) Where the user should be redirected after they authenticate or cancel their payment on the payment method’s app or site.voidsetPrivateApiKey(String privateApiKey) The Stripe-provided private key for your REST API integrationvoidsetPublicApiKey(String publicApiKey) Deprecated.this is not used in the gateway but on the frontendvoidsetShouldIncludeLevel3Data(boolean shouldIncludeLevel3Data) Whether or not credit card level 3 data should be included in each transaction.voidsetWebhookEndpointSecret(String webhookEndpointSecret) The Stripe-provided secret key for your webhook endpointMethods inherited from class com.broadleafcommerce.paymentgateway.properties.DiscriminatedProperties
getApplication, getField, getTenant, setApplication, setTenant
-
Constructor Details
-
StripeRestConfigurationProperties
public StripeRestConfigurationProperties()
-
-
Method Details
-
getPrivateApiKey
-
getWebhookEndpointSecret
-
getShouldIncludeLevel3Data
Deprecated.in favor ofgetShouldIncludeLevel3Data(String, String) -
getShouldIncludeLevel3Data
-
getPaymentIntentReturnUrl
Deprecated.in favor ofgetPaymentIntentReturnUrl(String, String) -
getPaymentIntentReturnUrl
-
getPaymentIntentReturnUrl
@Nullable public String getPaymentIntentReturnUrl(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest) -
isAbsoluteUrl
-
setPublicApiKey
Deprecated.this is not used in the gateway but on the frontendThe Stripe-provided public key for your REST API integration -
setPrivateApiKey
The Stripe-provided private key for your REST API integration -
setWebhookEndpointSecret
The Stripe-provided secret key for your webhook endpoint -
setPaymentIntentReturnUrl
Where the user should be redirected after they authenticate or cancel their payment on the payment method’s app or site. This is only relevant for requests where the PaymentIntent is being confirmed. Note the two accessorsgetPaymentIntentReturnUrl(String, String)andgetPaymentIntentReturnUrl(PaymentRequest). If callinggetPaymentIntentReturnUrl(PaymentRequest), then "broadleaf.stripe.rest.payment-intent-return-url" can be a relative url which will be combined withPaymentRequest.getSiteBaseUrl()to form a full url. If callinggetPaymentIntentReturnUrl(String, String), then the value of "broadleaf.stripe.rest.payment-intent-return-url" must be an absolute url. Otherwise, either a relative or absolute url may be used. -
setShouldIncludeLevel3Data
public void setShouldIncludeLevel3Data(boolean shouldIncludeLevel3Data) Whether or not credit card level 3 data should be included in each transaction. This is most applicable for businesses that accept a significant portion of corporate credit cards. The inclusion of this data for corporate card transactions can lead to more favorable rates from the processing credit card companies. -
setHardDeclineCodes
The list of payment gateway response 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 a payment gateway tells us that the payment method is stolen, then we should not allow it to be used anymore. -
setInvalidPaymentMethodDelcineCodes
The list of decline codes. If during payment request an error occurs and the decline code of the error is present in this list theDefaultTransactionFailureTypes.INVALID_PAYMENT_METHODwill be set asPaymentResponse.getFailureType(). -
getPublicApiKey
Deprecated.this is not used in the gateway but on the frontendThe Stripe-provided public key for your REST API integration -
getHardDeclineCodes
The list of payment gateway response 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 a payment gateway tells us that the payment method is stolen, then we should not allow it to be used anymore.- Returns:
- The list of payment gateway response codes that should be considered a
PaymentDeclineType.HARDdecline
-
getInvalidPaymentMethodDelcineCodes
The list of decline codes. If during payment request an error occurs and the decline code of the error is present in this list theDefaultTransactionFailureTypes.INVALID_PAYMENT_METHODwill be set asPaymentResponse.getFailureType().- Returns:
- the list of decline codes related to
DefaultTransactionFailureTypes.INVALID_PAYMENT_METHOD
-
getPaymentIntentReturnUrl(String, String)