We rebuilt our website from scratch and are still updating some extensions and pages. Having a problem? Sign in and open a support ticket or contact us.
JoomBoost

Stripe

Stripe is a card payment provider. The JoomCourses - PaymentStripe plugin sends the customer to a Stripe Checkout page to pay a booking. Card details never pass through your site. At checkout the method is called Credit or debit card (Stripe).

The payment methods the customer sees on the Stripe page (cards, wallets, local methods) are the ones you turn on in your Stripe Dashboard under Settings > Payment methods.

What you need

  • A Stripe account.
  • HTTPS on your site.
  • The plugin enabled. Go to System > Manage > Plugins and search for stripe. The installer enables it.

Settings

Open JoomCourses - PaymentStripe in the plugin list.

Stripe Account tab

Setting What to enter
Test Mode Yes while you try it. No real money moves. Set it to No for real payments once a test payment worked. Default Yes.
Test Secret Key Your test secret key (sk_test_... or a restricted key rk_test_...). Shown in test mode.
Test Webhook Signing Secret The signing secret of your test webhook (whsec_...).
Live Secret Key Your live secret key (sk_live_... or rk_live_...). Shown when Test Mode is No.
Live Webhook Signing Secret The signing secret of your live webhook.
Webhook URL The address to enter in Stripe. Read only.
Button Text The text of the pay button. Leave empty for the default. The order total is added to it.
Message Above the Button Optional text above the pay button.
Minimum amount, Maximum amount Offer Stripe only for bookings within this total. Leave empty for no limit.

Find the keys in the Stripe Dashboard under Developers > API keys. You do not need the publishable key.

Joomla stores plugin settings in the database, so the keys end up in every database backup. The plugin suggests a restricted key with write access on Checkout Sessions and Refunds and read access on PaymentIntents and Charges. To keep the key out of the database, enter env:STRIPE_SECRET_KEY to read it from an environment variable, or const:STRIPE_SECRET_KEY to read a constant you define in configuration.php.

Advanced tab

Setting What it does
Statement Descriptor Suffix Up to 22 characters added to your business name on the card statement.
Description on the Stripe Page What the customer sees they pay for. Default {SITENAME} - Order #{ORDER_ID}.
Checkout Expires After (minutes) How long a started Stripe page stays valid, between 30 minutes and 24 hours. Default 120.
Checkout Language auto follows the customer's browser. Or a Stripe locale code such as en, de, fr.
Confirm on Return Yes confirms the payment as soon as the customer comes back to your site, instead of waiting for the webhook. Leave it on.
Webhook Time Tolerance (seconds) How far your server clock may differ from Stripe's. Default 300.
Ignore Other Sites' Events Keep Yes when one Stripe account serves a staging and a live site, so a test on staging cannot mark a real booking as paid.
Connection Timeout (seconds) How long to wait for Stripe. Default 15.

Notifications tab

Setting What it does
Send Alerts To The address for alerts that need a person: duplicate payments, amounts that do not match the booking, partial refunds and disputes. Empty uses the site's From address.
Alert on Failed Payments Yes emails you each time a card is declined. Off by default.

The payment email to the customer is not set here. It is the Payment Received Email Template in the JoomCourses options. See Email templates.

Logging tab

Setting What it does
Enable Logging Writes plg_joomcourses_paymentstripe.php in the Joomla log folder. API keys are masked. On by default.
Log Full Notifications Also logs the full content of each webhook. It contains customer names and email addresses, so turn it off again after you looked into a problem.

Set up the webhook

Without the signing secret no payment can be confirmed by the webhook, because unsigned requests are rejected.

  1. In the Stripe Dashboard, open Developers > Webhooks and add an endpoint.
  2. Endpoint URL: copy it from the Webhook URL field of the plugin. It looks like this:
    https://example.com/index.php?option=com_joomcourses&controller=ntincoming&task=process&tgr=StripePaymentCompleted
  3. Select these events, not "all events":
    • checkout.session.completed
    • checkout.session.async_payment_succeeded
    • checkout.session.async_payment_failed
    • checkout.session.expired
    • payment_intent.payment_failed
    • charge.refunded
    • charge.dispute.created
  4. Save, open the endpoint and copy its Signing secret.
  5. Paste it into Test Webhook Signing Secret or Live Webhook Signing Secret and save the plugin.

Test mode and live mode have separate webhooks with separate secrets. Create the live webhook again when you switch to live.

What the customer sees

  1. After checkout, the booking page shows the pay button with the total.
  2. The customer clicks it and pays on the Stripe page.
  3. Stripe sends the customer back to the booking page. The booking becomes Paid and the customer gets the payment email. With a payment method that confirms later, such as a bank debit, the page says the payment is being processed and the booking changes when the webhook arrives.
  4. If the customer cancels on the Stripe page, the booking stays open and they can pay later from the booking page.

The plugin checks the paid amount and currency against the booking before it marks it as Paid. A payment that does not match is not applied and you get an alert.

Stripe is hidden at checkout when the total is below the smallest amount Stripe charges in your currency, or when Stripe does not accept the currency.

Refunds

Open the paid booking in Applications and click Refund in the toolbar. JoomCourses asks Stripe to refund the full amount and sets the booking to Refunded. A full refund made in the Stripe Dashboard also sets the booking to Refunded through the charge.refunded event. A partial refund made in Stripe sends you an alert and leaves the booking as it is.

Test

In test mode, pay with the card number 4242 4242 4242 4242, any future expiry date and any CVC. The booking should show as Paid in Applications, and the payment should appear in your Stripe Dashboard in test mode.

Troubleshooting

  • The pay button does not show. The plugin shows a message instead: no secret key, a test key with Test Mode off (or the other way round), a currency Stripe does not accept, or a total below the Stripe minimum.
  • The booking stays Submitted after payment. Check the webhook: the URL, the events, and that the signing secret belongs to the current mode. Look for failed deliveries under Developers > Webhooks, and read the plugin log.
  • Webhook deliveries fail with a redirect (3xx). The endpoint URL does not match your site address. Check https and www.
  • Notifications are rejected as too old. Your server clock is off. Fix the clock, or raise Webhook Time Tolerance (seconds).

All Extensions