First published on 30 June 2023 · revised November 2026
In short: Stripe lets the shop of your marLMS instance accept card payments. You enter two keys from your Stripe account in marLMS, create a webhook in Stripe and copy its secret back into marLMS. Then you switch Stripe on and make a test purchase.
In the shop you sell courses through a public catalogue. Buyers pay by card via Stripe or via PayPal. To receive the money and let marLMS know about each payment, you connect your instance to your Stripe account once. This guide shows the fields as they look in marLMS today.
What you need
- a Stripe account; you can create one at dashboard.stripe.com
- a marLMS login that can open the settings (gear icon, top right)
- two-factor sign-in for Stripe, for example with an authenticator app on your phone; it protects the account your money goes through
Step 1: Open the shop settings
In marLMS, click the gear icon at the top right and choose Shop management.

Open the Settings tab. Under General Settings, set Shop Activated to Yes and choose the Currency: CHF, EUR, USD or RON. Click Save.

Step 2: Copy the two keys from Stripe
Sign in to the Stripe Dashboard and open the developer area with the API keys. There you find:
- the Publishable key, starting with
pk_live_. It goes into the marLMS field Public Key. - the Secret key, starting with
sk_live_. It goes into the field Secret Key. Stripe only shows it after you click "Reveal live key".
Check the word at the start: keys with test (pk_test_, sk_test_) belong to Stripe's test mode, and no real money moves with them. For selling you need the keys with live.
Enter the secret key only in marLMS and share it nowhere else. If you created a new secret key yourself in Stripe, Stripe shows it only once, so copy it right away.
Step 3: Create the webhook
The webhook is how Stripe tells your marLMS instance that a payment has arrived.
- In marLMS, copy the address from the grey Webhook URL field. marLMS fills it in itself: it is the address of your instance followed by
/stripe/webhook. - In Stripe, open Webhooks (in the developer area or "Workbench") and create a new event destination. Choose Webhook endpoint as the destination type and paste the copied address.
- Select the events Stripe should send to marLMS. If you are unsure which events or settings to choose, write to us and we will help you with the setup.
- Save the endpoint and open it. Under Signing secret, click "Reveal" and copy the value. It starts with
whsec_. - Paste this value into the marLMS field Webhook Secret.
The webhook signing secret is not the same as the secret API key from step 2. If you mix them up, payments reach Stripe but not marLMS.
Step 4: Switch Stripe on and save
In the Stripe section, set Status to Enabled and click Save at the bottom of the section. The fields then look like this:

Step 5: Test it
Open the catalogue of your instance, add a course to the cart and pay for it. The purchase should then appear in the Sales History tab of shop management and the payment in the Stripe Dashboard. With live keys this is a real payment; you can refund it in the Stripe Dashboard.
Frequently asked questions about Stripe in marLMS
The payment reached Stripe but not marLMS. Why?
Usually because of the webhook. Check that the address in Stripe matches the Webhook URL in marLMS exactly, and that the Webhook Secret field holds the signing secret of that endpoint, not the secret API key. All three values must come from the same mode: all live or all test.
Can I practise with test keys first?
Yes. Switch the Stripe Dashboard to test mode, enter the keys starting with pk_test_ and sk_test_, and create the webhook in test mode. Before you start selling, replace all three values with the live ones.
Can I use PayPal instead of Stripe?
Yes. The same shop settings have a PayPal section below Stripe, with Client ID, Client Secret and a Sandbox option for testing. You can switch each payment method on and off separately.
What does Stripe cost?
Stripe charges its fees per payment directly to you. You find the current prices for your country on the Stripe website.
More questions about the shop are answered in the help section. If something does not work, write to us.