BSS Stripe Payment
Created on: Mar 03, 2026
BEFORE YOU START
Make sure all of the following are true before you begin:
- nopCommerce store running and reachable in the browser.
- BSS Core plugin installed and working (the Stripe plugin depends on it).
- A Stripe account — a free signup at stripe.com is enough for test mode; live mode requires account activation.
- Your store on a public HTTPS URL with a valid certificate — Stripe delivers webhooks only to publicly reachable HTTPS endpoints. If you are testing on localhost, use the Stripe CLI method described in Step 4B below.
INSTALLATION
- Download the plugin package from your order details page.
- Go to Administration → Configuration → Local plugins.
- The package contains everything required, including BSS.Core.
- Upload the zip files using the ‘Upload plugin or theme’ button.


- Reload the ‘list of plugins’, install ‘BSS Core’ first, then find and install ‘Stripe Payment’ (use the search bar if needed).

- To activate the plugins, restart the application.

Recommendation: Go to App Settings. If JavaScript bundling and minification and CSS bundling and minification are checked, uncheck and disable them — the plugin's scripts are served unbundled.

LICENSE ACTIVATION
- Go to Admin → BSS Core → License and paste the license string from your purchase, then save. BSS licenses are managed centrally by BSS Core — they are not entered on the plugin's own settings page.
- Until a valid license is active, the plugin stays installed but the Stripe payment method is hidden at checkout.
- You can verify license status any time under Admin → BSS Core → License status.
CONFIGURATION
- Go to Admin → BSS → Plugins → Stripe → Configuration (or click the plugin's Configure button in the plugin list).

- Secret Key — your Stripe secret key. In test mode it starts with
sk_test_; in live mode withsk_live_. You copy it from the Stripe Dashboard under Developers → API keys (see the setup sections below). If this field is empty, Stripe simply does not appear at checkout — nothing breaks. - Webhook Secret — the signing secret (
whsec_…) of your Stripe webhook endpoint. Stripe signs every webhook call with it, and the plugin uses it to prove the call really came from Stripe. Required for reliable automatic order confirmation. - Additional Fee — an extra amount added to the order total for customers who choose Stripe.
- Additional Fee. Use Percentage — when enabled, the fee above is treated as a percentage of the order total instead of a fixed amount.
- In multi-store setups every field has an override checkbox — tick it to keep a different value for the store you are currently configuring.
- Click Save, then clear the cache (Admin → System → Clear cache) so the new settings take effect everywhere.
TEST MODE SETUP (SANDBOX)
Test mode lets you run the complete checkout flow — real Stripe pages, real order flow — without moving any money. A Stripe account does not need live activation to use it.
Step 1 — Get your test Secret Key.
- Log in to dashboard.stripe.com and make sure the Test mode toggle (top-right corner) is ON.
- Open Developers → API keys.
- Find the Secret key, click Reveal, and copy it — it always starts with
sk_test_. Treat it like a password; it grants full API access to your test account.
Step 2 — Enter the key in the plugin.
- Go to Admin → BSS → Plugins → Stripe → Configuration.
- Paste the key into Secret Key and click Save.
- Open your storefront checkout: the Stripe payment method now appears as a payment option.
- Quick check: clear the Secret Key field, save, and refresh checkout — Stripe disappears. Paste the key back and it returns. This confirms the key is being read correctly.
Step 3 — Create the webhook endpoint.
- The webhook is how Stripe tells your store "this checkout session completed" so the order is marked paid automatically. Webhooks created in live mode never receive test events — create this one while Test mode is ON.
- In the Dashboard, open Developers → Webhooks (or Workbench → Webhooks) and click Add endpoint / Add destination.
- Set the Endpoint URL to your store's public HTTPS address plus the plugin's webhook path:
https://<your-store-domain>/StripeWebhook/HandleWebhook
- Select exactly these two events (the only ones this plugin handles):
checkout.session.completed— a customer finished payingcheckout.session.expired— a checkout session timed out unpaid
- Save the endpoint. Open it and click Reveal on the Signing secret — it starts with
whsec_. - Paste it into Webhook Secret in the plugin configuration and Save.
Step 4 — Place a test order.
- At checkout choose Stripe and pay on Stripe's hosted page with a test card:
- Success:
4242 4242 4242 4242, any future expiry, any CVC, any ZIP. - Requires authentication (3DS):
4000 0025 0000 3155. - Generic declined:
4000 0000 0000 0002. - Declined — insufficient funds:
4000 0000 0000 9995.
- After payment you are returned to your store's payment-result page, and the
checkout.session.completedwebhook marks the order as Paid in admin. - You can confirm delivery under the endpoint's Event deliveries in the Stripe Dashboard.
TESTING ON LOCALHOST (STRIPE CLI)
A dashboard webhook can never reach localhost, a private network, or a self-signed certificate. For local development, forward events with the Stripe CLI instead:
- 1. Install the Stripe CLI and verify it:
stripe --version
- 2. Log in (opens your browser):
stripe login
- 3. Forward events to your local site — adjust the port and path to your site:
stripe listen --forward-to 'https://localhost:5001/StripeWebhook/HandleWebhook' --skip-verify
- 4. The CLI prints a
whsec_…signing secret when it starts. Paste it into Webhook Secret in the plugin configuration. If the printed secret ever changes (for example after a fresh login), update the plugin setting to match. --skip-verifyis only needed when your local site uses a self-signed certificate. Keep the CLI running while you test — it is the webhook receiver.- Trigger a test payment and watch the CLI terminal: you will see
checkout.session.completedarrive in real time.
LIVE MODE SETUP (PRODUCTION)
Live mode moves real money. Every charge is a real card charge. Do one final small real order (and refund it) before announcing go-live.
Step 1 — Activate your Stripe account for live payments.
- In the Dashboard, switch the top-right toggle from Test mode to Live mode.
- Complete Activate your account: business type, business details, your bank account (where payouts settle), and identity verification.
- Wait until the dashboard shows the account active with payments enabled. Stripe's review is the one step you cannot speed up — ask for the business documents early.
Step 2 — Copy your live Secret Key.
- Still in Live mode, open Developers → API keys and copy the Secret key — it starts with
sk_live_. - Keep it secret; you paste it into the plugin in Step 4.
Step 3 — Create the live webhook endpoint.
- Test and live webhooks are completely separate — a test endpoint never fires for live payments, so you must create a fresh one in Live mode.
- Open Developers → Webhooks → Add endpoint and set the Endpoint URL to:
https://<your-live-domain>/StripeWebhook/HandleWebhook
- Select the same two events:
checkout.session.completedandcheckout.session.expired. The account's default API version is fine — the plugin tolerates version differences. - Save, then click Reveal on the Signing secret and copy the
whsec_…value. - No Stripe CLI is needed for live mode — it only forwards events to localhost; a live store receives webhooks directly at its public URL.
Step 4 — Configure the plugin with live values.
- Go to Admin → BSS → Plugins → Stripe → Configuration.
- Paste the
sk_live_…key into Secret Key and the livewhsec_…secret into Webhook Secret. Set your Additional Fee if needed. - Click Save and clear the cache.
Step 5 — Verify before announcing.
- Place one small real order with a real card — test cards like
4242 4242 4242 4242are rejected in live mode. - Confirm the customer returns to your store and the order is marked Paid in admin (check the webhook's Event deliveries if unsure).
- Issue a refund from the order page to confirm refunds work end-to-end.
- Watch Admin → System → Log for any errors during the test.
TEST MODE VS LIVE MODE
- Keys: test uses
sk_test_…, live usessk_live_…— they are not interchangeable. Mixing them causes failed payments or "test/live mode" errors. - Webhooks: test and live endpoints are separate objects with separate
whsec_…secrets. Always create the endpoint in the same mode as the key you configured. - Cards: test cards work only in test mode; live mode charges real cards and moves real money.
- Account activation: required for live mode only — test mode works on a fresh free account.
HOW WEBHOOKS WORK & TROUBLESHOOTING
- When a customer finishes Stripe Checkout, Stripe POSTs a
checkout.session.completedevent to/StripeWebhook/HandleWebhook. The plugin verifies the signature against your Webhook Secret and marks the order as paid. Expired sessions are recorded viacheckout.session.expired. - Failed delivery in Stripe almost always means the signing secret belongs to a different endpoint or mode — re-copy the
whsec_…from that exact endpoint and paste it again. - Empty Webhook Secret: the plugin refuses webhook calls, so orders rely only on the customer's return redirect and may stay unconfirmed. Keep it configured on every live store.
- Payment method missing at checkout: check the license is active (BSS Core → License) and the Secret Key is filled in.
PUBLIC VIEW

FEATURES
- Secure Hosted Checkout: Customers are redirected to Stripe's trusted checkout page to pay by card — no card data ever touches your server.
- Multi-Currency Support: Process payments in 135+ currencies to serve customers worldwide.
- Automatic Order Confirmation: Verified webhook integration marks orders as paid in real time.
- Full & Partial Refunds: Issue refunds directly from the nopCommerce admin order page.
- Customizable Fees: Apply additional transaction charges as either a fixed amount or a percentage of the order total.
- Multi-Store Support: Every setting can be overridden per store, so one plugin serves single or multiple storefronts.
- Test & Live Modes: Switch between Stripe test and live keys without any code change.