rcp_stripe_checkout_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_stripe] shortcode. You can use this to change the configuration options.
Parameters:

$data (array) – Default arguments sent to Stripe.

Example:
This snippet will enable the collection of the user’s billing address:
function ag_rcp_stripe_checkout_form_billing_address( $data ) {
$data[‘data-billing-address’] = true;

return $data;
}
add_filter( ‘rcp_stripe_checkout_data’, ‘ag_rcp_stripe_checkout_form_billing_address’ );

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

Have more questions?

Submit a request