rcp_stripe_checkout_form_data

Note: This is part of the developer docs and is considered custom code.
Unfortunately, we cannot provide support for custom code at this time as we do not have the additional resources that would be necessary to provide support for custom code.

If you need assistance with this, please reach out to our list of consultants for further assistance:
https://codeable.io/developers/restrict-content-pro/

Filters the Stripe Checkout arguments when using the [register_form] shortcode. You can use this to change the configuration options.

Parameters:

  • $data (array) - Default configuration sent to Stripe.

Example:

This snippet will enable the collection of the user's billing address:

function ag_rcp_stripe_checkout_billing_address( $data ) {
	$data['billing-address'] = true;

	return $data;
}
add_filter( 'rcp_stripe_checkout_form_data', 'ag_rcp_stripe_checkout_billing_address' );

Note: This filter is for the regular [register_form] shortcode only. If you're using the [register_form_stripe] shortcode, see the rcp_stripe_checkout_data filter instead.

Powered by Zendesk