gform_stripe_object

Description

Allows the arguments used to create the Stripe object to be modified.

Usage

add_filter( 'gform_stripe_object', 'your_function_name', 10, 2 );

Parameters

  • $args array

    An array of the various arguments used to create the Stripe object.

  • $form_id int

    The ID of the form.

Examples

add_filter( 'gform_stripe_object', 'set_stripe_args', 10, 2 );
function set_stripe_args( $args, $form_id ){
	$args['ccFieldId'] = 8;
	return $args;
}

Placement

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

Since

This filter was added in Stripe version 2.6.

Source Code

This filter is located in GFStripe::register_init_scripts() in gravityformsstripe/class-gf-stripe.php.