Last Updated: June 7, 2013
Recently I have set up a PayPal button on my site to accept payments for a premium membership level. I’m using WP eMember membership plugin to protect my premium content.
- Self-hosted WordPress install (on your own server)
- WP eMember plugin
- PayPal account
Once you install the WP eMember plugin the first thing you need to do is create a premium membership level.
Set up Your PayPal Button For Membership
You need to insert some plugin specific code into your PayPal button so the plugin can communicate with PayPal. When your membership level is ready you can generate this code from the plugin settings (WP eMember->Settings->Gateway Settings).
All you need to do is hit the Generate Code button.
Copy and paste the code into a text editor (e.g. notepad) since you will need to use it in your PayPal button code.
Generate PayPal Button Code
You can easily create a PayPal “Buy Now” or “Subscription” type button from your merchant account.
You just need to make sure to specify the eMember generated code in the Add advanced variables field before you click the Create Button option.
And that’s it. Simply grab the HTML button code and use it on your site (in the HTML/text editor of your WordPress post/page).
If someone clicks the button they will be redirected to PayPal and upon successful confirmation of the purchase the plugin will create a premium membership account (which you configured earlier) for the new user.