Home / Archive / MemberPress: Change Stripe Checkout Description
Duplicate Snippet

Embed Snippet on Your Site

MemberPress: Change Stripe Checkout Description

The code snippet changes the Stripe Checkout payment method description in the MemberPress registration pages.

To modify the description, update the “Pay with Apple Pay” description text on this line:

$desc = "Pay with Apple Pay";

Code Preview
php
<?php
function mepr_change_stripe_checkout_desc($desc, $payment) {
	if (isset($payment->settings->stripe_checkout_enabled) && $payment->settings->stripe_checkout_enabled == 'on') {
		$desc = "Pay with Apple Pay"; // Edit this.
	}
	return $desc;
}
add_filter('mepr_signup_form_payment_description', 'mepr_change_stripe_checkout_desc', 10, 2);

Comments

Add a Comment