With s2Member you can generate PayPal Button shortcodes (see WordPress Dashboard s2Member PayPal Buttons) that will generate a PayPal checkout button wherever you place the shortcode. However, if you are building a pricing table or a landing page a link might just "look better" for your particular application. A link would also allow you to create your own buttons that are styled to fit with your theme.

To generate a PayPal button link, you'll need to start by generating the PayPal Button shortcode as you would if you were using the shortcode itself. You'll need to configure the PayPal button to charge the right amount and provide the proper access.

Once you've generated the PayPal Button shortcode, you can use the output= attribute of the shortcode to tell s2Member to output a link instead of a button when the shortcode is processed (see WordPress Dashboard s2Member PayPal Buttons PayPal Shortcode Attributes (Explained)). Then you can use the generated link in any <a></a> anchor element.

  1. Generate the desired shortcode using WordPress Dashboard s2Member PayPal Buttons.
  2. Copy the generated shortcode to a new WordPress page.
  3. Change output="button" to output="url" in the shortcode and then wrap the shortcode inside an <a href=''></a> tag as seen in the example below. Note: It is VERY important that you put the URL in an HTML anchor tag.
  4. Publish your new page.
  5. Copy or note the URL to your newly published page.
  6. Log out of WordPress - this is important.
  7. Navigate to your newly published page.
  8. Copy the entire URL displayed there and use that link wherever you need the PayPal checkout to occur.

That's all there is to it. Short, sweet, and easy with s2Member.

Example Shortcode in an HTML Anchor Tag

<a href='[s2Member-PayPal-Button level="1" ccaps="" desc="Bronze Member / description and pricing details here." ps="paypal" lc="" cc="USD" dg="0" ns="1" ta="0" tp="0" tt="D" ra="0.01" rp="1" rt="M" rr="1" rrt="" rra="1" image="default" output="url" /]'>click here</a>

Note: It's important for your href='' attribute to use single quotes (as seen in the example above), because the shortcode itself uses double quotes. If you try to use double quotes in the href="" it will not work!