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?

Video Tutorial

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/wp-content/plugins/wp-eMember/ipn/eMember_handle_paypal_ipn.php
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.

Advanced Integration

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 code in the advanced variables section of the PayPal button (replace “your-domain” with your actual domain name):

notify_url=http://www.your-domain.com/wp-content/plugins/wp-eMember/ipn/eMember_handle_paypal_ipn.php
custom=[wp_eMember_custom_value level_id=2]

2 is the membership level ID for this button.

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.

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.

This entry was posted in Design & Usage and tagged , , . Bookmark the permalink.

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

  1. admin says:

    If you are using the WordPress user integration feature of eMember then all your members should have one account throughout your site. When they log into one system they will be logged into all the other systems too.

  2. Jenn says:

    Another question has come up….

    I’m thinking about installing buddy press on my site. I just wanted to check that the page containing buddy press can be made a member only page like the page with the digital content? Also, I assume that they wouldn’t have to sign in again to access buddy press once they’ve logged in as a member?

    Thanks again for your help.

  3. Ivy says:

    Hi, The eMember is not pre integrated with PayPal Pro at this time. You would need to do the integration for this or hire a developer. You would need a good amount of PHP knowledge for this. We do plan on adding PayPal Pro to the eStore in the near feature so the eMember would be able to do this via the eStore. The ETA for this feature is unknown at this time as our to do list is always changing.

  4. augusto says:

    is this plugin compatible with paypal pro?

  5. Buddy Hannon says:

    OH, I see, that’s something that I do on paypal, not in the plugin options. Oops! :)

  6. admin says:

    by “this option” are you referring to the “PayPal advanced variables”?

  7. Buddy Hannon says:

    I don’t see where this option is.
    Can I get a hint?

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>