The store and Stripe

This manual is for LMS Blueprint 0.47.19

Core Complete 0.47.3

LMS Blueprint takes payment through your own Stripe account, with Stripe Checkout. Card details are entered on Stripe’s page, not on your site.

1 · Connect Stripe

  1. In Stripe, open Developers → API keys. Use the test keys first.
  2. In WordPress, open School → Settings → Payments — Stripe. Paste the secret key and save. Once saved, the field shows dots, never the key: the secret key and both webhook signing secrets are stored encrypted, and to change one you paste the new one over the dots. Checkout runs on Stripe’s own page and needs only the secret key; the publishable-key field can stay empty. The secret key is shared with Store → Settings, so you only paste it once.
    The Stripe section with the secret key saved as dots, the webhook URL, and the result of Test Stripe connection showing a TEST key.
  3. Press Test Stripe connection. It shows the Stripe account the key belongs to and whether it is a TEST or LIVE key.

2 · Add the two webhooks

Store Settings: the Stripe secret key and Storefront webhook signing secret as dots, the five webhook events, the Storefront webhook URL, Coupons, and Seller with Let Stripe be the seller and My prices include tax.
«Yes, fix it in Stripe» sets up both webhooks, and each shows its events and «signing secret saved here».

Stripe tells your site about a payment through a webhook. There are two, one for each way of selling.

The quick way. Once the secret key is saved, press Set up Stripe for me under the Stripe connection on School → Settings (or on Store → Settings). It makes the webhooks in your Stripe account for this site’s addresses, with the events each one needs, and saves their signing secrets for you. Press it again and nothing new is made. Check reads your Stripe account and shows, for each address, whether its events are all there and whether its signing secret is saved here; it changes nothing. If something is wrong (an event missing, a webhook switched off by Stripe, or one made by hand), the screen says so and offers Yes, fix it in Stripe; nothing changes in Stripe until you press it, and webhooks for other addresses are never touched. Test and live keys each get their own webhooks and secrets, so switching back to the test key puts the test secret back. If your key is a restricted key that may not manage webhooks, the screen says so and you set them up by hand. Whenever the setup or a check fails, for that or any other reason, the by-hand steps open on the screen by themselves.

By hand. Create each in Stripe (Developers → Webhooks) from the same account and mode as your keys, then paste its signing secret into WordPress. The same steps are on the settings screen under Set it up by hand instead.

forendpoint (your site’s address +)eventspaste the signing secret in
course purchases/wp-json/am-lms/v1/stripe-webhookcheckout.session.completed, checkout.session.async_payment_succeeded, checkout.session.async_payment_failedSchool → Settings → Webhook signing secret
store products/wp-json/cb-store/v1/webhookall of those listed on Store → Settings: charge.refunded, checkout.session.completed, checkout.session.async_payment_succeeded, checkout.session.async_payment_failed, customer.subscription.deleted, customer.subscription.updated, invoice.paidStore → Settings → Storefront webhook signing secret

Both full addresses are printed on those two settings screens, and on the Tutorial screen. Tick the individual events in Stripe, not a whole category. The two async_payment events carry delayed payments, such as bank debits: without them, a buyer who pays that way is never given what they bought. If you set your webhooks up by hand before these were listed, press Check.

3 · Sell something

  • A course: give it a price in its Pricing box and publish it. Every published course appears in the shop automatically.
  • Anything else: Store → Products → Add New, and pick a Product type:
    A new product's Product Details box: the Product type list, Course access settings (course, toolkit, downloads) and Toolkit settings with the apps to tick.
    • Digital download: a file;
    • Course access: enrols the buyer in one of your courses;
    • Subscription: a recurring membership (needs a Stripe Price ID);
    • Toolkit: gives the buyer a set of your apps;
    • Licence key: issues a key for software you sell. It’s offered on the Store add-on, once Sell software licences is ticked in Store → Settings.

How the shop labels it

Each product also has Shown in the shop as: the word buyers see on its card, the filter it sits under and its place in the breadcrumb. Left on Work it out from the product type, the shop picks for you:

  • Course: a course, or a Course access product;
  • Book: a book or ebook. Choose it yourself, or put the product in a collection with “book” in its name;
  • Download: a Digital download that isn’t a book, such as a PDF, a template, a workbook or an audio file;
  • Tool: a Toolkit, or a single tool;
  • Software: a Licence key product;
  • Membership: a Subscription;
  • Bundle: several products sold as one. Choose it yourself, or use a collection with “bundle”, “team” or “seat” in its name.

What you choose always wins over the shop’s guess.

Collections are your own groupings, under any names you like, set in the Collections box on a product’s screen. Each collection has its own page, and a product’s page lists the collections it’s in.

To rename a kind, or take it off the shop’s filters, go to Store → Settings → Shop labels. A kind you take off still sells and still shows under All.

Store Settings: currency symbol and code, Price for one tool, and the Shop labels table with one and several names for each kind and Show as a filter.

The Store’s Home screen shows your shop and cart addresses. Add the Shop page to your site menu so visitors find it.

The Store home screen: Setup complete, Stripe connected with webhook set, the shop and cart addresses, Add something to sell, Create sample products and the shortcodes.

Want to see the shop with something in it first? Store → Home → Create sample products adds one example product; Remove sample products takes it away. Nothing is added unless you ask.

A line on each product card

On a product’s screen, Card line (optional) puts one line under its title on the shop’s cards: 160 characters at most. Leave it empty for none.

How the shop and product pages look

On a site using the LMS Blueprint theme with its LMS Blueprint style pack, the shop and every product page are drawn with the page sections, in your colours, in light and in dark. On any other site they keep their earlier design.

  • The shop has one heading, your Shop heading (else the page’s own title), and your Shop introduction under it. The category buttons are links, so they work in any browser; Founder Picks (the first drawn dark), New items and the whole shop follow, each card with its picture, its line, its price and its buy button. A product with no picture shows a plain frame, not its initials.
  • A product page puts the picture beside a buy column that stays on screen as the page scrolls: the name, its line, the price (or the monthly or yearly switch), the buy button, then the description and related products. On a phone, once the buy column has scrolled away, a bar at the foot of the screen shows the price and takes the visitor back to it.

The shop follows its page: give the shop page another address and the shop’s links move with it.

The shop fits what you sell. Its Browse the shop band has a card for each kind you have products in (Courses, Books, Resources, Software, Memberships and so on), and the band is left out when everything you sell is one kind. With few products, a Founder Picks or New items row that would repeat the whole shop is left out too. The Courses item the store adds to your site menu waits until you publish a course.

Each product page has a row of share links: email, social sites and a copied link. To take the row off every product page, untick Show share links under Store → Settings → Product pages; your own AI agent can change it too.

Sell single tools

If you sell toolkits, you can also sell each tool on its own. In Store → Settings, set Price for one tool: every tool a published toolkit sells can then be bought singly, at that one price. Leave it empty, as it starts, and tools are sold only inside their toolkits.

  • Only a signed-in buyer can put a tool in the cart, so a tool they already own is never charged again.
  • The shop’s Resources page then offers three ways in: Browse, Build my own (pick tools one by one into a bundle) and Start from a question. Without a price, Build my own isn’t shown.
  • A full refund takes back exactly the tools that order gave.

Promotion codes

Store → Settings → Coupons → Let buyers enter a promotion code at checkout. Create the codes themselves in your Stripe dashboard.

Let Stripe be the seller

You can let Stripe be the seller of what your store sells, instead of you. Stripe calls this Stripe Managed Payments. Stripe then works out, charges and pays the sales tax, VAT or GST on each sale in the countries it covers, and deals with fraud, disputes and buyers’ payment questions. It adds 3.5% to Stripe’s usual fee on each sale. It is off until you turn it on.

  1. In your Stripe Dashboard, turn on Managed Payments (Settings → Managed Payments). Stripe checks that your business and products qualify: self-paced courses, downloads and software can; live one-to-one coaching can’t.
  2. A product that has its own Stripe Price needs a tax category on that product in Stripe (Product catalogue → Edit product → Product tax code).
  3. In Store → Settings → Seller, tick Let Stripe be the seller (Stripe Managed Payments), pick a tax category for each kind of product, and save. Every checkout (a course, a product, the cart) then has Stripe as the seller.

What changes when it’s on:

  • Your buyers see «Sold through Link» at checkout and LINK.COM* with your name on their card statement. Receipts, invoices and refund emails come from Link. Your store still sends its own emails and gives access as before.
  • Your terms: while it’s on, your Terms of Sale and your refund page must name Stripe (Link) as the seller. LMS Blueprint doesn’t write them for you.
  • Prices: under the switch, My prices include tax is ticked until you untick it. Ticked, the price in your shop is what the buyer pays, and Stripe takes the tax out of it. Unticked, Stripe adds tax on top, so the buyer pays more than your shop shows. A product with its own Stripe Price uses that Price’s own tax setting in Stripe.
  • Refunds: Stripe can refund a buyer itself: if it asks you about a sale and you don’t answer within 48 hours, and in some cases within 60 days of the sale. That refund reaches your store like any other, and the buyer’s access is taken back.
  • Payment methods: Stripe chooses them, not your Dashboard settings: cards, Apple Pay, Google Pay, Link and some local methods. PayPal, Klarna and Clearpay aren’t offered to buyers in the UK while Stripe is the seller.
  • Subscriptions that started before you turned it on stay as they are. Only new ones move.

Untick it and new sales have you as the seller again.

Currency

One currency per site: set the symbol and the code under School → Settings → General.

4 · Make a test purchase

  • The Orders list with one test order for a course, its amount, status complete, the Test order note and Details; the total taken leaves test orders out.
  • A test order's details: date, account, course, amount, status, Test order yes, the Stripe references, Remove the test flag and the Log line.

When a subscriber cancels, the subscription’s order says so in its Log: Set to cancel on {date}, and Cancel undone if they keep it after all.

When the test works, swap the test keys and both webhook secrets for live ones.

Running beside WooCommerce

LMS Blueprint and WooCommerce can run on the same site. While WooCommerce is active, each keeps its own pages and addresses, whichever you installed first.

  • WooCommerce keeps its words: /shop/, /cart/, /checkout/, /my-account/ and its products under /product/.
  • The Store moves under /store/: the shop page becomes Store at /store/, the cart Store cart at /store-cart/, and your products live at /store/ + the product’s name. If something else on your site already uses /store/, the Store uses /lms-store/ instead.
  • Old product links keep working: a product’s old /product/ address forwards to its new one, unless a WooCommerce product uses that address (then WooCommerce’s product shows).
  • Your account page becomes Course account at /course-account/. Signing in always happens there: the site’s «Log in» links and wp-login.php lead to it, as do the links in your store’s emails. WooCommerce’s My account page keeps the customer’s orders and addresses, and its menu gains My courses (and Study hub, where your plan has it and the Study hub is switched on).
  • If your shop, cart and account pages were made before WooCommerce arrived, they move when it does. A page whose address you changed yourself is left where it is.
  • In the admin, the Store’s menu reads Store products, Store orders and Store settings, so they aren’t confused with WooCommerce’s.

Selling through WooCommerce: a WooCommerce product can give a course, a toolkit or a download, with refunds taking it back: see Selling through WooCommerce. A WooCommerce product without its LMS Blueprint access tab set gives nothing in LMS Blueprint; to give that buyer a course by hand, enrol them on School → Students (a buyer who checked out as a guest has no account yet, so use Create account and enrol), and if you refund them in WooCommerce, use Remove from course. See Students and progress.

If you switch WooCommerce off again, your products go back to /product/ (their /store/ addresses forward there); the pages stay where they moved, because people may have saved their addresses.