Stripe Subscription
For Tradly SuperAdmin + Stripe Integration
This guide will walk you through setting up a Stripe-powered subscription system for your marketplace using Tradlyβs SuperAdmin.
Youβll learn how to:
- β Create products and prices in Stripe
- π Link plans via SKU to SuperAdmin
- π§ Configure Stripe webhooks
- π§ͺ Enable and test the payment flow
- π οΈ Fix misconfigurations (like missing SKUs or webhook issues)
- π§Ό Maintain your system long-term
βπͺ Full Step-by-Step Setup Guide
βπ₯ Step 1: Create Products & Prices in Stripe
- Log in to your Stripe Dashboard.
- Navigate to Products β Click Add Product
- For each plan (e.g., Free, Basic, Pro):
- Enter the product name (e.g.,
Basic Plan
) - Add a Price:
- Type: Recurring β Choose Monthly or Yearly
- Choose currency and set the amount
- Enter the product name (e.g.,
- Copy the Price ID (e.g.,
price_1NKxyz...
) β this will be used as the SKU in SuperAdmin.
βπ₯ Step 2: Add Subscriptions in SuperAdmin
- Log in to Tradly SuperAdmin
- Go to: Subscription Management β Click Add New Subscription
βπ½ Fill in the form:
Field | Description |
---|---|
Title | Plan name (e.g., Basic , Pro ) |
SKU | Paste Stripe Price ID (e.g., price_1NKxyz... ) |
Description | Explain the plan features |
Currency | Choose currency (e.g., USD ) |
Amount | Enter price (e.g., 9.99 ) |
Allowed Listings | Number of listings allowed (e.g., 10 ) |
Commission % | Platform fee percentage (e.g., 10 ) |
Expiry Days | Validity period in days (e.g., 30 ) |
Payment Method | Select Stripe |
Status | Set as Active |
Important:
Go to Payments > Payment Methods β Click the Configuration button on the Header method.
Enable Subscription, and set Subscription Type as Stripe
.

βπ₯ Step 3: Configure Stripe Webhook
- Go to Stripe Dashboard β Developers β Webhooks
- Click + Add endpoint, use the following format:
https://api.tradly.app/v1/payments/stripe/webhook/subscriptions/{your_tenant_name}
example: https://api.tradly.app/v1/payments/stripe/webhook/subscriptions/fashona
Under Events to send, select:
customer.subscription.created
customer.subscription.updated
customer.subscription.deleted
Click Add endpoint
Copy the Webhook Secret
βπ§Ύ Step 4: Setup Stripe Payment Gateway in SuperAdmin
- In SuperAdmin, go to: Payments > Payment Methods
- Click Add Payment Method
- Select Stripe (Web)
ββοΈ Configure API Keys
Click βοΈ icon in the Stripe method row, then enter:
Key | Where to find it |
---|---|
Publishable Key | Stripe Dashboard β API Keys |
Secret Key | Stripe Dashboard β API Keys |
Webhook Secret | From Step 3 above |


ββ Step 5: Test the Full Flow
- Go to your marketplace website
- Subscribe to a plan
- Youβll be redirected to Stripeβs secure checkout
- Complete payment
- After success:
- β Subscription should be activated in SuperAdmin
- β Webhook events should sync in real-time
βπ Subscription Block in Website Pages (Optional)
You can show your subscription plans on a custom page:
In the Editor, create a new page
Add the Subscription Block
- This will automatically show plans from SuperAdmin
Add a CTA button (e.g., in header, footer, homepage)
- Link it to your subscription page (e.g.,
/subscription
)
πSystem behavior:
If a user tries to add a listing without a valid subscription, theyll be redirected to this page.- Link it to your subscription page (e.g.,
βπ οΈ Common Subscription Plan Scenarios
ββ Scenario 1: Basic Plan
Field | Example |
---|---|
Title | Basic Plan |
Description | Access to core features |
Currency | USD |
Amount | $9.99 |
SKU | price_1NKabc... |
Allowed Listings | 10 |
Payment Method | Stripe |
Status | Active |
βπ Scenario 2: Premium Plan
Field | Example |
---|---|
Title | Premium Plan |
Description | All features, priority support |
Currency | USD |
Amount | $29.99 |
SKU | price_1NKxyz... |
Allowed Listings | Unlimited |
Payment Method | Stripe |
Status | Active |
ββ Troubleshooting Guide
Issue | Fix |
---|---|
Cannot edit subscriptions | Delete and recreate with correct Stripe Price ID |
Webhook not triggering | Recheck endpoint URL and selected events |
Price mismatch | Match SuperAdmin amount with Stripe price |
Duplicate SKU | Use a unique Stripe Price ID per subscription (1:1 mapping) |
βπ Migrating or Fixing an Incorrect Setup
If your current plans are missing SKUs or inactive, follow this cleanup process:
ββ Step 0: Clean and Rebuild
Delete invalid plans in SuperAdmin (missing/incorrect SKUs)
Create new Products in Stripe with valid recurring prices
Recreate Subscriptions in SuperAdmin:
- Paste Stripe Price ID into SKU
- Fill out all other fields properly
βResult: A clean and fully connected system.
βπ§Ό Maintenance Tips
- If you update prices in Stripe, update the SKU in SuperAdmin
- Do not delete Stripe products linked to active plans
- Use Stripe Test Mode to validate before going live
- Add screenshots or highlights to make the process easier visually