gform_stripe_connect_enabled

Description

Allows the disabling of Stripe Connect in order to use the legacy Stripe API key connection method.
Note: When the filter is set, users will need to disconnect from Stripe first in order to see the input fields.

Usage

add_filter( 'gform_stripe_connect_enabled', '__return_false' );

Parameters

Example

add_filter( 'gform_stripe_connect_enabled', '__return_false' );

Placement

This code should be placed in the functions.php file of your active theme.

Security Warning

Disabling Stripe Connect means your site is no longer using our secure OAuth method for connecting to the Stripe service. When using OAuth, a site-specific OAuth key is stored in the database. These have limited use if your database is compromised and cannot be used to obtain access to your Stripe account directly.

When disabling this method, you are choosing to instead store your actual Stripe API keys in the database. These keys provide a large range of functionalities for the Stripe service, and this increases your risk if your database is compromised by bad actors or authorized users with ill intent.

Since

This filter was added in Stripe version 2.8.

Source Code

This filter is located in gravityformsstripe/class-gf-stripe.php.