WP User Only Button is an add-on for the WP Stripe Checkout plugin that can be used to only show payment buttons to logged-in WordPress users. This can be useful if you are trying to set up a user only payment page or wish to protect a specific payment button from anonymous users.
How It Works
To hide/protect a payment button from anonymous users, enclose the pay button shortcode with the “wpstripeco_wp_user_only_button” shortcode.
Example 1
[wpstripeco_wp_user_only_button][wp_stripe_checkout_session name="My Product" price="2.99"][/wpstripeco_wp_user_only_button]
Example 2
[wpstripeco_wp_user_only_button][wp_stripe_checkout_payment_link url="https://buy.stripe.com/live_6gPE4jw7dMbUKdd3345"][/wpstripeco_wp_user_only_button]
The pay button will appear normally when the user is logged in to WordPress.

If the user is not logged in, a message will be shown instead.

The default message can be customized in the add-on settings (Stripe Checkout > Settings > Advanced).

Compatibility
You can use the add-on to protect these shortcode buttons from the WP Stripe Checkout plugin:
- wp_stripe_checkout_session
- wp_stripe_checkout_payment_link
Great addon, does exactly what I want. From my experience I really like the fast response from your tech support. They are very helpful.
@Peter, Thanks for your kind words.