Integration GuideCommunauté
Pile à billets
+
PayPal

Memberstack + PayPal

Accept one-time PayPal payments and subscriptions on your Webflow site. Includes customer portal, automatic plan management, and Make.com automation.

One-time

Paiements

Recurring

Abonnements

Make.com

Automation

How It Works

Accept PayPal payments and sync subscriptions with Memberstack plans.

PayPal Button

MemberScript

Pile à billets

Important Disclaimer

Memberstack is built on Stripe as its native payment processor. This PayPal integration is a workaround solution for users who specifically need PayPal.

Who This Is For

  • • Users who specifically need PayPal
  • • Comfortable with custom integrations
  • • Can manage two payment systems

Who This Is NOT For

  • • Users who want official features
  • • Prefer native integrations only
  • • Need tight PayPal + MS integration

Phase 1

Prerequisites

1

Memberstack 2.0 Setup

Pile à billets

Required Configuration:

  • • A Data Table named paypal_payments
  • • A member reference field named member
  • • Three member custom fields: memberstack-planid, paypal-customerid, plan-status
2

PayPal Business Account

PayPal

Required from PayPal:

  • • REST API app created (Client ID + Secret)
  • • Subscription plans created in PayPal Dashboard
Go to PayPal Developer
3

Make.com Account (Optional)

Make.com

Required for automation of subscription cancellations. When a member cancels in Memberstack, Make.com will automatically cancel their PayPal subscription.

Phase 2

Script Setup

4

Load PayPal SDK

Add this in your Webflow site's Custom Code → Head Code:

Code de la tête
<script src="https://www.paypal.com/sdk/js?client-id=YOUR_CLIENT_ID&currency=USD&components=buttons,subscription&disable-funding=paylater,card"></script>

Note: Replace YOUR_CLIENT_ID with your PayPal Client ID. Use sandbox ID for testing, live ID for production.

5

Add MemberScript #201

Add the MemberScript in your Custom Code → Footer Code. All settings are configurable in the CONFIG object.

View MemberScript #201

Phase 3

HTML Markup

6

One-Time Payment Button

Add this HTML where you want the PayPal button to appear:

One-Time Payment HTML
<div
  data-ms-code="paypal-container"
  payment-type="onetime"
  amount="29.99"
  currency="USD"
  table="paypal_payments"
  member-field="member"
  default-plan="pln_onetime-plan-3qjm0brv"
  redirect-url="/success"
>
  <div id="paypal-button-container-0" class="button-container"></div>
</div>
7

Subscription Button

For recurring subscriptions, use this markup:

Subscription HTML
<div
  data-ms-code="paypal-container"
  payment-type="subscription"
  subscription-plan-id="P-4SJ12655CJ6930608NFNXHLY"
  default-plan="pln_basic-78f60xky"
  plan-name="Basic Plan"
  redirect-url="/welcome"
>
  <div id="paypal-button-container-1" class="button-container"></div>
</div>
Required Attributes
  • subscription-plan-id - PayPal plan ID (starts with P-...)
  • default-plan - Memberstack plan ID to attach
  • plan-name - Human-readable plan name

Phase 4

Create PayPal Plans

8

Create Plans in Dashboard

  1. Go to developer.paypal.com
  2. Navigate to Sales → Subscriptions
  3. Create a Product first, then create a Plan
  4. Copy the Plan ID (starts with P-...)

Tip: Always test in Sandbox first. Use PayPal test card: 4032034816716178

9

API Method (Alternative)

You can also create plans via the API:

Terminal
curl -X POST https://api-m.sandbox.paypal.com/v1/billing/plans \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -d '{
    "product_id": "PROD-XXXXX",
    "name": "Monthly Basic Plan",
    "billing_cycles": [{
      "frequency": { "interval_unit": "MONTH", "interval_count": 1 },
      "tenure_type": "REGULAR",
      "sequence": 1,
      "pricing_scheme": {
        "fixed_price": { "value": "29.99", "currency_code": "USD" }
      }
    }]
  }'

Phase 5

Make.com Automation

10

Set Up Cancellation Flow

Automatically cancel PayPal subscriptions when a member cancels in Memberstack.

1. Watch Updated Members2. Filter: CANCELED3. Get PayPal Token4. Cancel Subscription
Make.com HTTP Module
URL: https://api-m.paypal.com/v1/billing/subscriptions/{{paypal-customerid}}/cancel
Method: POST
Headers:
  Content-Type: application/json
  Authorization: Bearer {{access_token}}
Body: { "reason": "Canceled via Memberstack" }

Going Live Checklist

Update PayPal SDK to live Client ID
Change API URLs from sandbox to live
Update Make.com credentials to live
Verify all custom fields exist

Dépannage

Button doesn't appear: Check PayPal SDK loaded first
Not saving to Data Table: Verify table name matches
Automation not triggering: Check plan-status is 'CANCELED'

Essayez Memberstack gratuitement

Essai 100 % gratuit et illimité - mise à niveau uniquement lorsque vous êtes prêt à vous lancer. Aucune carte de crédit n'est requise.