Home / Archive / MemberPress: Enable Phone Number Collection on Stripe Checkout
Duplicate Snippet

Embed Snippet on Your Site

MemberPress: Enable Phone Number Collection on Stripe Checkout

This code snippet enables the phone number field on the Stripe Checkout form, allowing Stripe to collect subscribers' phone numbers.

Code Preview
php
<?php
add_filter('mepr_stripe_checkout_session_args', function($args) {
	$args['phone_number_collection'] = [
			'enabled' => 'true'
	];
		
	return $args;
});

Comments

Add a Comment