The pmpro_stripe_payment_intent_params allows you to filter the parameters included in the Stripe Payment Intent. This recipe demonstrates how to set a custom statement descriptor for your membership site. If you have connected a single Stripe account to multiple websites, this approach make it more clear to your customers what a specific payment is for.

Banner graphic for How to Set a Custom Statement Descriptor for Stripe Memberships Payments

The Code Recipe

Adding the Recipe to Your Website

You can add this recipe to your site by creating a custom plugin or using the Code Snippets plugin available for free in the WordPress repository. Read this companion article for step-by-step directions on either method.

Update line 17 with your preferred site-specific statement descriptor. This field must be under 22 characters or checkout will fail. You can update more than just the statement descriptor parameter using this filter. For a full list of supported parameters in Stripe, see: https://stripe.com/docs/api/payment_intents/object


Free Course: Membership Site Development—The Basics

Develop a deeper understanding of membership site development in this beginner-level course. Learn how to make your site work better, save yourself time and money, and improve your site's performance.

Featured Image for Membership Site Development Course: The Basics
Was this article helpful?
YesNo