Payment Gateways
Learnomy overviewFree + ProGet Learnomy →

Learnomy supports three real-money payment gateways: Stripe, PayPal, and WooCommerce. Each one handles the money collection independently; Learnomy handles enrolment, subscription creation, and commission calculation the same way regardless of which gateway the customer used.
You can also enable a Test Gateway for development and QA work.
Overview
Section titled “Overview”Go to LMS settings > Payments to configure gateways. Each gateway has its own settings card.
Pick one checkout route for the whole site: either WooCommerce, or Learnomy’s own internal methods (Stripe and/or PayPal). Enabling WooCommerce makes it the exclusive checkout – every purchase type (course, membership, gift, learning path, space, seat pack) goes through it, and Stripe, PayPal and the Test gateway stop being offered at checkout even if their toggles are still on. Without WooCommerce, enable Stripe and/or PayPal and the student picks between whichever of those are on.
The Payments tab also contains Checkout settings (business name, refund policy, guarantee days).
Stripe
Section titled “Stripe”Stripe processes credit and debit card payments for one-time purchases and recurring membership subscriptions.
The on-page checkout experience
Section titled “The on-page checkout experience”Students pay without leaving your site. The card fields render directly on the Learnomy checkout page using Stripe’s Payment Element, so there is no redirect to a Stripe-hosted page and customers stay in your branding the whole time. The form themes itself to match the page, including dark mode, and re-themes live if the student toggles light or dark mid-checkout.
The same on-page Payment Element backs every purchase type Learnomy sells: single courses, memberships, space seat packs, gift purchases, and learning paths. Your own checkout button submits the payment, so there is one consistent flow regardless of what is being bought.
The billing address is collected by Learnomy’s own fields, above the payment method, for every gateway rather than only for card buyers. That satisfies the export-transaction requirement Indian card payments are subject to, and prevents the “missing address” decline. See Checkout and Purchase Flow.
The amount is fetched live and re-validated on the server before the charge, so a stale price in the browser can never be charged: if a price changes between page load and pay, the checkout self-heals to the current amount.
Delayed and bank-based payment methods
Section titled “Delayed and bank-based payment methods”Some payment methods do not clear at checkout. A bank debit or a cash voucher tells Stripe “accepted” immediately but the money can take days to arrive: SEPA Direct Debit, Bacs, BECS, boleto, OXXO, Konbini.
Learnomy handles those correctly. The buyer is not enrolled when they submit – they land on the thank-you page in a pending state that says the enrollment is being set up. The enrollment is created when Stripe confirms the funds actually cleared, and if the payment ultimately fails, nothing is granted and no paid-looking order is left behind.
You do not configure anything for this. Enable the methods you want in your Stripe Dashboard and they appear in the on-page Payment Element. The one requirement is the webhook: the async events below must be subscribed, because for these methods the webhook is the only signal that the money arrived.
Enable Stripe
Section titled “Enable Stripe”Check Enable Stripe to activate the gateway. Uncheck to disable Stripe entirely even if API keys are saved.
Choose Test or Live. The mode toggle switches which set of credentials the gateway reads. Test mode uses Stripe test API keys and does not charge real cards. Live mode charges real cards.
A badge at the top of the Stripe card shows the current mode (TEST MODE or LIVE MODE).
Webhook URL
Section titled “Webhook URL”Copy the webhook URL shown in the settings card and add it to your Stripe account.
-
In Stripe Dashboard, go to Developers > Webhooks > Add endpoint.
-
Paste the Learnomy webhook URL.
-
Subscribe to these events:
checkout.session.completed,checkout.session.async_payment_succeeded,checkout.session.async_payment_failed,payment_intent.succeeded,payment_intent.payment_failed,charge.failed,invoice.payment_succeeded,invoice.payment_failed,customer.subscription.deleted,customer.subscription.updated,setup_intent.succeeded,charge.refunded,charge.dispute.created,charge.dispute.closed.The two
async_payment_*events are what fulfil delayed methods such as SEPA or boleto. Without them, a buyer who pays by bank debit is charged and never enrolled.payment_intent.payment_failedandcharge.failedmark a declined checkout as failed straight away (the hourly check catches it otherwise).charge.refundedis what reverses access when you refund from the Stripe Dashboard rather than from Learnomy. The twocharge.dispute.*events flag a disputed sale, email you when one is opened, and book a lost dispute as a full refund.setup_intent.succeededandcustomer.subscription.updatedstart a membership that costs nothing today (a free trial, or a coupon that covers the first payment) as soon as the buyer’s card is saved. -
Copy the Signing secret from the created endpoint and paste it into the Webhook Signing Secret field in Learnomy.
If a webhook is missed. Learnomy does not rely on the webhook alone for card payments. When the buyer lands on the thank-you page, it asks Stripe about the payment directly and delivers the purchase if the webhook has not. That includes a membership with nothing to pay today (a free trial, or a coupon that covers the first payment): once the buyer’s card is saved, the thank-you page starts the membership itself. Once an hour it also checks the last 48 hours of Stripe payments for any that were paid but never delivered. That check handles one-time purchases, a subscription’s first payment and its renewals: a missed renewal extends the subscription and is booked as a renewal, not a new sale. A payment for an account that has since been deleted is skipped.
Test credentials
Section titled “Test credentials”- Test publishable key - starts with
pk_test_. Enter it in plain text; it is not a secret. - Test secret key - starts with
sk_test_. Stored encrypted. Leave blank to keep the saved value; the field shows bullet characters when a key is already saved. - Test webhook signing secret - starts with
whsec_. Stored encrypted.
Live credentials
Section titled “Live credentials”The same three fields for the live environment (pk_live_..., sk_live_..., whsec_...).
Testing the connection
Section titled “Testing the connection”Click Test Stripe Connection after saving credentials. The button sends a test API call and returns a pass or fail message without creating any charge.
Membership plan setup
Section titled “Membership plan setup”No Stripe product or Price setup is required. Set the plan’s price and billing interval in the plan editor (the Essentials section) and save - Learnomy creates the matching recurring Stripe Price for you the first time it is needed, in whichever mode (test or live) your gateway is configured for.
Earlier versions asked you to create a Price in the Stripe Dashboard and paste its ID into a Payment Provider Mapping accordion. That accordion and those fields were removed on purpose: a hand-typed Price ID is a typo that only surfaces at checkout, and Stripe can create the Price from the figure you already entered. If you are following an older guide or screenshot that shows that accordion, it no longer exists and nothing replaces it - setting the price is the whole job.
For one-time course purchases, no Stripe product setup is required either. Learnomy creates a checkout session at the time of purchase with the exact course price.
PayPal
Section titled “PayPal”PayPal handles one-time course purchases and recurring membership subscriptions via its REST API.
Enable PayPal
Section titled “Enable PayPal”Check Enable PayPal to activate the gateway. Requires both a Client ID and Secret to be configured.
Choose Sandbox or Live. Sandbox uses PayPal Developer test accounts. Live charges real PayPal balances.
Webhook URL
Section titled “Webhook URL”Copy the webhook URL and register it in the PayPal Developer Dashboard.
-
Go to PayPal Developer > My Apps > your app > Webhooks > Add webhook.
-
Paste the Learnomy webhook URL.
-
Subscribe to all fourteen events Learnomy handles. Miss one and the matching outcome silently never happens on your site. If your webhook already exists, Learnomy’s settings screen lists any event it is missing and offers Add the missing events:
Event What Learnomy does with it CHECKOUT.ORDER.APPROVEDTakes the payment and records the one-off purchase PAYMENT.SALE.COMPLETEDRecords a subscription’s recurring payment PAYMENT.CAPTURE.REFUNDEDRecords the refund and revokes access PAYMENT.CAPTURE.REVERSEDRecords a reversed payment as a refund PAYMENT.SALE.REFUNDEDRecords a refunded subscription payment PAYMENT.SALE.REVERSEDRecords a reversed subscription payment as a refund BILLING.SUBSCRIPTION.ACTIVATEDStarts the membership BILLING.SUBSCRIPTION.UPDATEDMarks a recovered membership active. A membership that is waiting to start (a plan change at the period end) stays waiting until its start date BILLING.SUBSCRIPTION.CANCELLEDEnds the membership at the period end BILLING.SUBSCRIPTION.EXPIREDEnds the membership BILLING.SUBSCRIPTION.SUSPENDEDMarks the subscription past due BILLING.SUBSCRIPTION.PAYMENT.FAILEDMarks the subscription past due CUSTOMER.DISPUTE.CREATEDFlags the sale as disputed; access is kept CUSTOMER.DISPUTE.RESOLVEDClears the flag, or records a full refund when the buyer won The refund and failure events are the ones most often missed: without them a refunded student keeps access indefinitely, and a failed renewal is never marked past due. Turning PayPal off for new sales keeps all of this working for members it already bills.
-
Copy the Webhook ID from the created webhook entry (a string like
1AB23456CD789012E) and paste it into the Webhook ID field in Learnomy. Until it is saved, Learnomy cannot check PayPal’s updates and turns them away; if PayPal is already sending them, your Learnomy screens say “Finish setting up your payment webhook.” and PayPal sends them again once the ID is saved.
Sandbox credentials
Section titled “Sandbox credentials”- Sandbox client ID - from PayPal Developer Dashboard under your app credentials.
- Sandbox secret - stored encrypted. Leave blank to keep the saved value.
- Sandbox webhook ID - the webhook ID from the PayPal sandbox webhook you created.
Live credentials
Section titled “Live credentials”The same three fields for the live environment.
Testing the connection
Section titled “Testing the connection”Click Test PayPal connection after saving credentials. Returns a pass or fail without creating a charge.
Membership plan setup
Section titled “Membership plan setup”No PayPal Billing Plan setup is required. Set the plan’s price and billing interval in the plan editor and save - Learnomy creates the matching PayPal billing plan (and its product) for you the first time a member subscribes, in whichever mode (sandbox or live) your gateway is configured for.
As with Stripe, the old Payment Provider Mapping accordion where you pasted a PayPal Plan ID was removed. The gateway is handed the terms you already entered, so there is nothing to create in the PayPal Dashboard and nothing to paste back into Learnomy.
WooCommerce
Section titled “WooCommerce”WooCommerce, when enabled, becomes the payment gateway for every Learnomy purchase type on the site: single course, membership plan, space, space seat, gift, and learning path. It is not possible to sell one purchase type through WooCommerce and another through Stripe or PayPal on the same site – enabling WooCommerce takes over the whole checkout.
WooCommerce only collects the money. Learnomy handles enrolment, subscription, and commission the same way it does for Stripe and PayPal.
How it works
Section titled “How it works”When a student checks out with WooCommerce:
- Learnomy adds one hidden virtual product (“Learnomy Checkout Item”) to the WooCommerce cart and sets the line price to the exact amount (already adjusted for any sale or coupon). Two courses in the same cart are two lines, each at its own price.
- The student is redirected to the standard WooCommerce checkout page.
- The student pays using whatever payment method WooCommerce has configured (any WooCommerce payment plugin works).
- Access starts when the payment is in. A paid order that holds only Learnomy purchases goes straight to Completed, since there is nothing to ship. An order that also holds a product you ship stays in Processing for you to ship it, and its courses and memberships are granted at payment, without you completing the order. Either way Learnomy reads the purchase payload from the order, records a transaction, fires the standard enrolment or subscription actions, calculates instructor commission, and adds an order note naming what it gave access to (“Learnomy gave access to: …”).
“Paid” means the payment method told WooCommerce it took the money: card and PayPal payment methods do. Bank transfer, cheque and cash on delivery do not: their orders sit in On hold or Processing until you confirm the money, and grant nothing until you mark the order Completed.
Refunds and cancelled orders
Section titled “Refunds and cancelled orders”- Refund. A full refund of a course, from the order total or from the course line, removes the access and adds the order note “Learnomy removed access to: …”. A partial refund keeps the access, as it does on every gateway. A course that a membership, an access grant or another paid sale still covers stays open.
- Cancel without a refund. Cancelling an order Learnomy already gave access for returns no money, so the access stays. The order note says “Learnomy access kept for: … Refund the order to remove it.” Cancelling an unpaid order (on hold, pending) changes nothing and adds no note.
- Make cancel remove access. A site that wants cancelling to work like a refund can return
truefrom thelearnomy_woo_cancel_removes_accessfilter. Cancelling then removes the same access a full refund would, and the note says “Learnomy removed access to: …”. The sale stays paid in LMS commerce > Transactions, because no money went back.
add_filter( 'learnomy_woo_cancel_removes_access', '__return_true' );On the WooCommerce order-received page, the access block with its Start links appears only for the logged-in buyer and only once access has been granted. A course the buyer cannot open (its enrolment was refused, for example because the course was unpublished) shows “Payment received. We’re finishing your access; the site owner has been told.” instead of a Start link. A guest buyer instead sees a notice: once the order is processed, it says an account was created for their email and asks them to check their email to set a password and log in; until then it says access starts as soon as the order is completed and that they will be emailed. The notice’s “log in” link goes through the login screen straight into the course. A guest who paid from this browser is logged in automatically on this page once the order is completed, and then sees the access block. A guest must use the same email on the WooCommerce checkout that they gave on the course checkout; a changed email is refused before the order is placed.
For one-time purchases, Learnomy uses one reusable hidden virtual product across all purchase types. Recurring membership billing (when WooCommerce Subscriptions is active) uses a small set of period-keyed subscription products, one per billing interval (for example, monthly and yearly), with the price still set dynamically at checkout. Learnomy does not create a separate WooCommerce product per course or membership plan.
Prerequisites
Section titled “Prerequisites”- WooCommerce must be installed and active.
- The WooCommerce Checkout page must use the classic shortcode (
[woocommerce_checkout]), not the block-based checkout. The block checkout does not support third-party payment gateways that operate outside the Store API. - The WooCommerce Cart page must also use the classic shortcode (
[woocommerce_cart]). - If WooCommerce has “Coming soon” store mode enabled, disable it (set WooCommerce > Settings > General > Store notice off or use the
woocommerce_coming_soon=nooption). Coming-soon mode blocks the cart and checkout.
Enabling WooCommerce
Section titled “Enabling WooCommerce”- Install and activate WooCommerce.
- In Learnomy, go to LMS settings > Payments.
- Check Enable WooCommerce and save.
WooCommerce now handles checkout for every purchase type. Stripe, PayPal and the Test gateway are no longer offered at checkout while WooCommerce is enabled, even if you leave their toggles on.
No API keys or per-plan mapping is required. WooCommerce uses its own installed payment methods (card, PayPal, bank transfer, etc.) for the actual charge.
Use the same currency in both plugins. Learnomy has one site currency (LMS settings > Payments) and passes the amount to WooCommerce; the buyer is charged in WooCommerce’s store currency (WooCommerce > Settings > General). Learnomy never changes another plugin’s settings, so keeping the two currencies the same is part of your setup. If they differ, the amount is charged in WooCommerce’s currency. The billing fields on WooCommerce’s own checkout page belong to WooCommerce too.
Recurring subscriptions via WooCommerce Subscriptions (Pro feature)
Section titled “Recurring subscriptions via WooCommerce Subscriptions (Pro feature)”Pro feature. Recurring membership billing through WooCommerce Subscriptions is available in Learnomy Pro.
When the WooCommerce Subscriptions extension is active, recurring membership plans are supported. Learnomy creates a period-keyed subscription product per billing interval (e.g. one for monthly, one for yearly) and sets the recurring price dynamically at checkout. No per-plan subscription products are needed.
Lifecycle events (renewal, cancellation, expiry, payment failure, reactivation) from WooCommerce Subscriptions reach Learnomy the same way Stripe and PayPal events do, so the subscription status in Commerce > Subscriptions stays in sync. A paid renewal order extends the subscription and is recorded as a renewal (Course subscription renewal or Membership renewal in the Transactions list), not as a new sale, and nothing is granted a second time. A space sold through WooCommerce records a Space renewal.
Commission with WooCommerce
Section titled “Commission with WooCommerce”Instructor commission works exactly as with Stripe and PayPal. When the WooCommerce order is granted (see above), Learnomy fires learnomy_payment_completed and the commission service calculates the platform and instructor split using the same rules (per-course rate, per-instructor rate, or the default 30% platform / 70% instructor). Each paid renewal of a course subscription earns the instructor again, as on Stripe and PayPal. The commission rows appear on the transaction detail page.
Test Gateway
Section titled “Test Gateway”The Test Gateway completes any checkout instantly without calling an external service. It records a completed transaction and triggers all the same fulfilment actions as a real gateway (enrolment, subscription creation, coupon redemption).
Enable it at LMS settings > Payments > Test Gateway. Turn it off before going live. It is intended for development and QA only.
It is a payment gateway like Stripe or PayPal, and only its own toggle controls it, with one safety net: it switches itself off as soon as Stripe or PayPal is set to live mode. WooCommerce does not change it. With WooCommerce as your checkout, buyers are not shown the Test option, but the gateway itself stays enabled so you can still test purchases yourself. It is not for public use on a live site: switch it off there.
The test payment mode notice
Section titled “The test payment mode notice”While the Test Gateway is enabled, a single notice appears on Learnomy’s admin screens: “Learnomy is in test payment mode.” It explains that orders placed with the Test option are simulated, no real charge is taken, and they are recorded at $0 and kept out of your revenue. The notice links straight to Payment settings.
This replaces an earlier, more alarming warning that suggested customers could not purchase at all. That was misleading: test mode is a normal staging state (the same way WooCommerce has a sandbox mode), and the real safeguard isn’t blocking checkout, it’s that test orders can never inflate your numbers.
Test orders record at zero
Section titled “Test orders record at zero”Every order placed through the Test Gateway is recorded with an amount of 0.00, tagged as test mode in its metadata. This means:
- Test purchases never add to your revenue totals, earnings, or instructor payouts.
- The transaction row still exists and is fully visible in Commerce > Transactions, with provider “Test”, so you can verify the buy-to-access flow end to end.
- The original intended price is kept in the transaction’s metadata for reference, but it is not what gets summed anywhere in reporting.
If you ever see $0 sales piling up from the Test provider, that’s the signal test mode is still on, not a billing problem.
Checkout and Refund Policy settings
Section titled “Checkout and Refund Policy settings”Below the gateway cards, the Checkout settings card contains:
- Business name - shown on receipt PDFs and invoice emails. Defaults to the site title.
- Money-back guarantee - turn on Show a money-back guarantee and set the guarantee period in days; it is shown on course pages and at checkout. Turn it off to hide it.
- Refund policy - plain-text refund policy shown at checkout and on receipts.
When a member cancels a PayPal subscription
Section titled “When a member cancels a PayPal subscription”PayPal has no “cancel at the end of the period”. When a member cancels for the end of the period they paid for, Learnomy suspends the subscription at PayPal instead of cancelling it: PayPal takes no further payment, and the member keeps access to the end of the paid period. In your PayPal dashboard the subscription shows as Suspended until then.
- If the member resumes before the period ends, Learnomy re-activates it at PayPal and billing continues on PayPal’s next billing date, as before.
- When the period ends, Learnomy cancels it at PayPal for good. If that step is ever missed, it stays suspended, so nobody is charged, and Learnomy’s hourly check cancels it.
- An immediate cancel (for a refund or abuse) cancels at PayPal at once, as before.
Subscribe your PayPal webhook to BILLING.SUBSCRIPTION.SUSPENDED: Learnomy recognises its own suspension and does not treat the member as past due.
Moving your site, or a staging copy on the same payment account
Section titled “Moving your site, or a staging copy on the same payment account”Your payment provider sends every event on your account to every webhook address you add. When a staging copy of your site, or a second site, uses the same Stripe or PayPal account, each site receives the other’s payments. Learnomy books only its own: every payment and subscription it opens carries a short code made from your site’s address, and a site books a payment only when the code is its own.
Switching from http to https, or adding or removing www, changes nothing. The code is the same, and no notice appears.
A staging copy of your live site has the live site’s records but a different address. When the live site’s payments reach the copy, the copy books nothing. If the copy holds a record for the payment (because it was copied from live), it keeps the payment aside and asks you, on the WordPress Dashboard and the Learnomy screens: “Payments for 3 subscriptions are arriving for example.com. Did this site move from example.com?” On a copy, click No, this is a copy. Those payments are then never booked on the copy. Then give the copy its own test keys under Settings > Payments, so it stops receiving the live site’s payments at all.
If you made a staging copy before updating and connected it to the same payment account with its own webhook, the first renewal may reach the copy first; when the live site asks “Did this site move?”, answer Yes.
A site that really moved to a new address shows the same question for subscriptions that were sold at the old address. Click Yes, this site moved. The payments that were waiting are booked once, and from then on the old address’s payments are booked here as usual. Learnomy also updates those subscriptions at your provider so their later payments carry the new address.
Payments waiting for your answer show as Waiting for your answer in Payment log. Nothing is lost while you decide: they stay held until you answer. Closing the question with the X only hides it for 3 days.
- You can run Stripe in Test mode and PayPal in Live mode at the same time. Each gateway uses its own mode setting.
- Stripe and PayPal secret keys are stored encrypted in the database using WordPress’s
AUTH_KEY. They are never sent back to the browser. - If a student’s checkout redirects to WooCommerce but the cart looks empty, the most common cause is that WooCommerce’s “Coming soon” store mode is active.
- For WooCommerce refunds, go to the WooCommerce order (find the order ID in the transaction’s gateway reference) and use WooCommerce’s own Refund button. Learnomy detects the refund via webhook and creates the corresponding refund transaction row automatically, and the order note says which courses it removed access to.
- With only the test gateway enabled, Learnomy does not warn that no payment gateway is configured – a test-mode site can genuinely take (simulated) orders, so that warning would be untrue. Instead you get a calm notice: “Test gateway active. Purchases are simulated, so you can demo checkout now.” Test-gateway orders are recorded at 0.00 and excluded from revenue, earnings, and payouts, so demoing checkout never inflates your numbers.
Related
Section titled “Related”Prices below a gateway’s minimum
Section titled “Prices below a gateway’s minimum”Every payment provider has a smallest amount it will charge in each currency. Stripe, for example, needs at least ¥50 in Japanese yen and 0.50 in US dollars. When a course or plan costs less than that:
- The course and plan editors say so under the price: “Stripe needs at least ¥50 per payment in this currency, so a lower price cannot be paid with Stripe. Raise the price or offer another payment method.”
- A buyer who tries to pay that way sees “This purchase cannot be completed right now. Please contact the site owner.” Nothing is charged.
- You get a notice on Learnomy’s admin screens naming the course or plan, the gateway, its minimum and the price, with a link to edit the price. It comes back after a week while buyers still cannot pay.
Raise the price, or offer another payment method that takes smaller amounts.

