WordPress Membership

Easy to use WordPress Membership plugin

  • Documentation
  • WP eMember Plugin
  • Projects
  • Home

Creating a PayPal Subscription Button for Membership Payment

A lot of people use the WP eStore plugin to create payment buttons for membership as it has a few advantages. However, you can also create a PayPal Subscription payment button inside eMember to accept payment for your premium memberships.

Buy Now Type Button or Subscription Type Button?

You can use PayPal buy now or subscription type buttons for your membership payment (based on how you want to setup the payment structure). Read the following post so you understand the difference between these two types of payment buttons.

  • Difference between “Buy Now” and “Subscription” type buttons for membership payment

Creating PayPal Subscription Button for Membership Payment

Step 1) Select PayPal Subscription Button

Go to Payments -> Create New Button interface from the admin side of the eMember plugin. Then select the PayPal Subscription option (see image below):

creating-paypal-subscription-button-for-membership-step-1

Step 2) Configure the Payment Details

Enter the payment details and select your membership level for the button. See example below:

creating-paypal-subscription-button-for-membership-step-2

Step 3) Put the Subscripiton Button on Your Membership Payment Page

You can now put this newly created payment button on your membership join us page so the visitors can pay you using this button.

The Payment Buttons tab shows you the shortcode you need to use to put your payment button on a page.

creating-paypal-buy-now-button-for-membership-step-3

The shortcode will create a PayPal Subscription button (for the membership level you specified in the button).

Your PayPal Profile Settings

Make sure that the Instant Payment Notification (IPN) feature is enabled in your PayPal profile (this is enabled by default). You can enable it by going to the profile menu in your PayPal account.

If the IPN is disabled in your PayPal Profile then PayPal won’t send any payment notification to eMember after payment. This will cause the registration process to not work as usual and your users who pay you won’t get any email form eMember.

You can use your site’s homepage URL when enabling the IPN feature in your PayPal account.

Creating a Thank You Page

You should create a generic thank you page for your membership site. Use this page as your return page in the PayPal button (so the user goes to this page after the payment).

Explain what the user can expect next in this “Thank You” page. Instruct your users to check their email and click on the link to complete the paid membership registration.

The following is an example of the type of message you should put on your thank you page:

You will receive an email shortly which will contain the details of this transaction.

You will also receive an email containing a unique link. Click on that link in the email to complete your paid membership registration.

Customizing the Payment Button

The look and feel of the button will depend on your theme’s style/CSS.

You can use a custom image for your button to customize it. Upload your button image to the media library then specify the URL of the image in the “Button Image URL” field (by editing the button).

You can also customize the button text by specifying the value in the shortcode using the “button_text” parameter. Below is an example shortcode that uses “Subscribe Now” as the payment button text:

[emember_payment_button id="3553" button_text="Subscribe Now"]

What Happens After the Payment?

If the payment is made by a new member then the user will receive an email that contains a unique link to complete the registration. Read the registration process documentation to learn more.

If the payment is made by an existing member then the membership level (associated with this payment button) is applied to the existing member’s profile.

The member must be logged into the site as a member for this plugin to recognize the user and treat him as an existing member.

Will the Affiliate Commission be Tracked?

If you are using our WP Affiliate Platform plugin and the user was referred by an affiliate then the referrer will receive an affiliate commission after the payment.

Filed Under: Design & Usage Tagged With: membership payment, paypal, plain paypal button

Creating a PayPal Buy Now Button for Membership Payment

A lot of people use the WP eStore plugin to create payment buttons for membership as it has a few advantages. However, you can also create a PayPal payment button inside eMember to accept payment for your premium memberships.

Buy Now Type Button or Subscription Type Button?

You can use PayPal buy now or subscription type buttons for your membership payment (based on how you want to setup the payment structure). Read the following post so you understand the difference between these two types of payment buttons.

  • Difference between “Buy Now” and “Subscription” type buttons for membership payment

Creating PayPal Buy Now Button for Membership Payment

Step 1) Select PayPal Buy Now Button

Go to Payments -> Create New Button interface from the admin side of the eMember plugin. Then select the PayPal Buy Now option (see image below):

creating-paypal-buy-now-button-for-membership-step-1

Step 2) Configure the Payment Details

Enter the payment details and select your membership level for the button. See example below:

creating-paypal-buy-now-button-for-membership-step-2

Step 3) Put the Payment Button on Your Membership Payment Page

You can now put this newly created payment button on your membership join us page so the visitors can pay you using this button.

The Payment Buttons tab shows you the shortcode you need to use to put your payment button on a page.

creating-paypal-buy-now-button-for-membership-step-3

The shortcode will create a PayPal buy now button (for the membership level you specified in the button).

Your PayPal Profile Settings

Make sure that the Instant Payment Notification (IPN) feature is enabled in your PayPal profile (this is enabled by default). You can enable it by going to the profile menu in your PayPal account.

If the IPN is disabled in your PayPal Profile then PayPal won’t send any payment notification to eMember after payment. This will cause the registration process to not work as usual and your users who pay you won’t get any email form eMember.

You can use your site’s homepage URL when enabling the IPN feature in your PayPal account.

PayPal IPN URL

WP eMember doesn’t require you to use any special URL for the IPN feature. The plugin just needs that the IPN feature be enabled in your PayPal account. So you can use your homepage URL to enable this feature.

Creating a Thank You Page

You should create a generic thank you page for your membership site. Use this page as your return page in the PayPal button (so the user goes to this page after the payment).

Explain what the user can expect next in this “Thank You” page. Instruct your users to check their email and click on the link to complete the paid membership registration.

The following is an example of the type of message you should put on your thank you page:

You will receive an email shortly which will contain the details of this transaction.

You will also receive an email containing a unique link. Click on that link in the email to complete your paid membership registration.

Customizing the Payment Button

The look and feel of the button will depend on your theme’s style/CSS.

You can use a custom image for your button to customize it. Upload your button image to the media library then specify the URL of the image in the “Button Image URL” field (by editing the button).

You can also customize the button text by specifying the value in the shortcode using the “button_text” parameter. Below is an example shortcode that uses “Pay Now” as the payment button text:

[emember_payment_button id="3552" button_text="Pay Now"]

What Happens After the Payment?

If the payment is made by a new member then the user will receive an email that contains a unique link to complete the registration. Read the registration process documentation to learn more.

If the payment is made by an existing member then the membership level (associated with this payment button) is applied to the existing member’s profile.

The member must be logged into the site as a member for this plugin to recognize the user and treat him as an existing member.

Will the Affiliate Commission be Tracked?

If you are using our WP Affiliate Platform plugin and the user was referred by an affiliate then the referrer will receive an affiliate commission after the payment.

Filed Under: Design & Usage Tagged With: Account Upgrade, membership payment, paypal, plain paypal button

How to Use a Simple PayPal Payment Button to Accept Membership Payment

A lot of people use the WP eStore plugin to create payment buttons for membership as it has a range of benefits but you can use a PayPal payment button (“Buy Now” or “Subscribe”) that you create in your PayPal account to accept payment for your premium members too.

Buy Now Type Button or Subscription Type Button?

  • Difference between “Buy Now” and “Subscription” type buttons for membership payment

Video Tutorial Showing PayPal Button Integration

Setup Preparation

To create a membership payment button using PayPal, you will need two pieces of information:

  • The URL of the IPN handling script
  • The ID of the membership level that you are creating this payment button for

The above two pieces of information will go in the “advanced variables” field of your PayPal button. WP eMember has a settings menu that will allow you to generate the advanced variables code easily so you can copy and paste it into your PayPal button.

Step 1) Go to the following area of your WP Admin dashboard:

eMember Settings -> Gateway Settings -> Direct PayPal Integration settings

Step 2) You can find the ID of a membership level (example: 4) in the “Membership Level” menu of the WP eMember plugin.

Enter the Membership level ID in the appropriate box then hit the “Generate Code” button to generate the advanced variables code that you need to use in your PayPal button.

The advanced variables code it generates for your site should look something like the following (you will need to copy this code so you can use it in your PayPal button):

notify_url=http://www.your-domain.com/?emember_paypal_ipn=1
custom=subsc_ref=4

Specifying the “Advanced Variables” Code in the PayPal button

When you create your button on PayPal from the “Merchant Services” menu, you will be able to specify some advanced variables in “Step 3”.

Specify advanced variables

Specify advanced variables

  • Check the add advanced variables checkbox
  • Copy and Paste the text from the notepad saved earlier into the textarea.

Now, you can copy the button code that PayPal gives you and paste it in your “Membership Payment” page. When someone makes a payment using this button it will automatically create a membership for the membership level that is specified in the button.

Your PayPal Profile Settings

Make sure that the Instant Payment Notification (IPN) is enabled in your PayPal profile (this is enabled by default). You can enable it by going to the profile menu in your PayPal account.

If the IPN is disabled in your PayPal Profile then PayPal won’t send any payment notification to eMember after payment. This will cause the registration process to not work as usual and your users who pay you won’t get any email form eMember.

Creating a Thank You Page

You should create a generic thank you page for your membership site. Use this page as your return page in the PayPal button (so the user goes to this page after the payment).

Explain what the user can expect next in this “Thank You” page. Instruct your users to check their email and click on the link to complete the paid membership registration.

The following is an example of the type of message you should put on your thank you page:

You will receive an email shortly which will contain the details of this transaction.

You will also receive an email containing a special link. Click on that link in the email to complete your paid membership registration.

Advanced Integration with a PayPal Button (An Alternative Integration Option)

This section is only for users who are looking for an advanced integration option.

If you want to create a PayPal button that both your new users or existing members can use to pay or renew membership then use the following option. This is also useful when you want your existing members to be able pay using a different PayPal account or email address. It can also track the affiliate commission if you are using our affiliate platform plugin.

Step 1) Edit your PayPal button and remove any value from your PayPal button’s advanced variables section. If you are creating a new PayPal button then you can skip this step.

Step 2) Edit the WordPress page where you will add the PayPal button code for membership payment.

Step 3) Add the following shortcode inside your PayPal button’s HTML code.

[wp_eMember_paypal_fields level_id="2"]

In this example, 2 is the membership level ID for this button so you will need to change it for your site.

Your final PayPal button code on the page should look something like the following example:

paypal-button-integration-advanced-example

It works just like a normal membership payment button for new users. However, when your logged-in members use this PayPal button to Pay, it will upgrade their existing membership profile to the newly paid level or renew the existing level. It will also work with affiliate tracking (if you are using our affiliate tracking plugin).

Video Tutorial (Using a PayPal Buy Now Button)

Video Tutorial (Using a PayPal Subscription Button)

Note: Once the button code is generated in your PayPal account, make sure that it is not “protected” (Click the Remove code protection option if it is encrypted). You also need to make sure that the website tab is selected (not Email) so PayPal shows you the full button code.

Filed Under: Design & Usage Tagged With: membership payment, paypal, plain paypal button

Get the WP eMember Plugin

Get WP eMember

Categories

  • Additional Resources
  • Content Protection
  • Design & Usage
  • eMember Addon
  • Installation
  • Integration
  • License
  • Testing
  • Uncategorized
  • Video Tutorial

Recent Comments

  • Chris Brown on API – Querying A Member Profile Using HTTP GET or POST
  • admin on API – Updating A Member Account Using HTTP GET or POST
  • Chris Brown on API – Updating A Member Account Using HTTP GET or POST
  • admin on API – Updating A Member Account Using HTTP GET or POST
  • Andrea on API – Updating A Member Account Using HTTP GET or POST

Featured WordPress Plugins

WP Express Checkout Plugin
wordpress_estore_icon
wordpress membership plugin icon
wordpress_affiliate_plugin_icon

Copyright © 2025 | WP Membership Plugin