Skip to main content
Version: 3.x

Disable automatic capture

This guides explains how to configure the Payzen extension to disable automatic capture of the payment.

info

This feature is only available when using the Payzen as a Front-Commerce payment.

What's automatic capture?

Automatic capture is the default behavior of the Payzen extension. It means that the payment is captured automatically when the order is created.

When using the Payzen as a Front-Commerce payment, the automatic capture is enabled by default and is made by the Front-Commerce application.

However, in some cases, you may want to disable the automatic capture to implement custom capture logic.

How to disable automatic capture?

To disable the automatic capture, you need to set the FRONT_COMMERCE_PAYZEN_DISABLE_CAPTURE environment variable to true in your .env file.

FRONT_COMMERCE_PAYZEN_DISABLE_CAPTURE=true