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
Zahlungen
Recurring
Abonnements
Make.com
Automation
How It Works
Accept PayPal payments and sync subscriptions with Memberstack plans.
PayPal Button
MemberScript
Mitgliederstapel
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
Memberstack 2.0 Setup
Required Configuration:
- • A Data Table named
paypal_payments - • A member reference field named
member - • Three member custom fields:
memberstack-planid,paypal-customerid,plan-status
PayPal Business Account
Required from PayPal:
- • REST API app created (Client ID + Secret)
- • Subscription plans created in PayPal Dashboard
Make.com Account (Optional)
Required for automation of subscription cancellations. When a member cancels in Memberstack, Make.com will automatically cancel their PayPal subscription.
Phase 2
Script Setup
Load PayPal SDK
Add this in your Webflow site's Custom Code → Head Code:
<script src="https://www.paypal.com/sdk/js?client-id=YOUR_CLIENT_ID¤cy=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.
Add MemberScript #201
Add the MemberScript in your Custom Code → Footer Code. All settings are configurable in the CONFIG object.
Phase 3
HTML Markup
One-Time Payment Button
Add this HTML where you want the PayPal button to appear:
<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>Subscription Button
For recurring subscriptions, use this markup:
<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
Create Plans in Dashboard
- Go to developer.paypal.com
- Navigate to Sales → Subscriptions
- Create a Product first, then create a Plan
- Copy the Plan ID (starts with
P-...)
Tip: Always test in Sandbox first. Use PayPal test card: 4032034816716178
API Method (Alternative)
You can also create plans via the API:
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
Set Up Cancellation Flow
Automatically cancel PayPal subscriptions when a member cancels in Memberstack.
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
Fehlersuche
Memberstack kostenlos testen
100 % kostenlose, unbegrenzte Testversion - Upgrade erst, wenn Sie bereit sind, zu starten. Keine Kreditkarte erforderlich.
