gform_stripe_api_mode

gform_stripe_api_mode

DescriptionUsageParametersExamplesPlacementSinceSource Code

Description
The 「gform_stripe_api_mode」 filter in the Gravity Forms Stripe Add-On allows the API mode to be set to 「live」 or 「test」.
Usage
add_filter( 'gform_stripe_api_mode', 'your_function_name', 10, 1 );

Parameters

$api_mode string
The API mode.

Examples
add_filter( 'gform_stripe_api_mode', function ( $api_mode ) {
return 'live';
} );

Placement
This code should be placed in the functions.php file of your active theme.
Since
This filter was added in Stripe version 2.0.
Source Code
This filter is located in GFStripe::get_api_mode() in gravityformsstripe/class-gf-stripe.php.

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注