Simple Membership Plugin: Setup

January 31, 2025


A step-by-step guide on how to connect Stripe as a payment gateway to the Simple Membership WordPress plugin. The process of setting up the necessary API keys in both Stripe and the Simple Membership plugin settings, enabling you to accept payments for membership subscriptions directly through your WordPress site.

Setup API Keys in Stripe for the Plugin.

  1. Log in to your Stripe account:
    https://dashboard.stripe.com/
  2. Navigate to: Developers → API keys.
  3. Copy the following keys:
    • Publishable Key (e.g., pk_live_xxx or pk_test_xxx)
    • Secret Key (e.g., sk_live_xxx or sk_test_xxx)

Go to WP Admin:
WP Admin > WP Membership > Payments > Stripe Settings

Enter the keys in the respective fields:

  • Test Publishable Key
  • Test Secret Key
  • Live Publishable Key
  • Live Secret Key

Setup Webhook in StripeEndpoint URL

  1. Log in to your Stripe Dashboard:
    https://dashboard.stripe.com/
  2. Navigate to:
    DevelopersWebhooks
  3. Click “Add Endpoint”.
  4. In the Endpoint URL field, paste the webhook URL from Simple Membership:
    Example: https://www.website.com.au/?swpm_process_stripe_subscription=1&hook=1
  5. Select Events:
    • Select the following events:
      • checkout.session.completed
      • invoice.payment_succeeded
      • invoice.payment_failed
      • customer.subscription.updated
      • customer.subscription.deleted

Now create Buttons in WordPress Simple Membership for payments

Step 1: Go to the Simple Membership Plugin Settings

  1. In your WordPress admin dashboard, navigate to:
    WP Membership > Payments > Create New Button.

Click “Create New Button”.

Step 2: Configure the Button

    Button Title: “Student Fee”.

    Membership Level: Select the membership level (e.g., Student, Bronze, etc.).

    Price: Enter the price for the membership, e.g., $50.00.

    Currency:  Set the appropriate currency (e.g., AUD for Australian Dollar).

    Return URL:  https://website.com/thank-you/Cancel URL: https://website.com/payment-cancelled/