Important

You are browsing upcoming documentation for version 7.0 of OroCommerce, scheduled for release in 2026. Read the documentation for version 6.1 (the latest LTS version) to get up-to-date information.

See our Release Process documentation for more information on the currently supported and upcoming releases.

Stripe Amount Validation 

Stripe API introduces the minimum and maximum amount limits for each currency. The OroStripePaymentBundle provides a way to validate the amount before sending it to Stripe.

The main entry point to check if amount complies with the configured limits is \Oro\Bundle\StripePaymentBundle\StripeAmountValidator\GenericStripeAmountValidator. It implements the \Oro\Bundle\StripePaymentBundle\StripeAmountValidator\StripeAmountValidatorInterface interface and provides the following methods:

  • isAboveMinimum(float $amount, string $currency) - checks if the given amount is above the minimum limit for the specified currency.

  • isBelowMaximum(float $amount, string $currency) - checks if the given amount is below the maximum limit for the specified currency.

This validator is then used in the \Oro\Bundle\StripePaymentBundle\PaymentMethod\StripePaymentElement\StripePaymentElementMethod payment method to check if the payment method is applicable for the given amount and currency before processing the payment.

Configuration 

Stripe amount validation can be configured for each currency via bundle configuration. Find more details in the Bundle Configuration section.

Note

You can find more information about charge amount limits in Stripe Documentation.