Go to content

Enable Stripe in Johku

This guide takes you from creating a new Stripe account to the point where your customers can pay through Stripe in your Johku storefront. It takes about 30 to 60 minutes, and in addition Stripe's review can take from hours to a few days.

In short: Johku uses Stripe's own payment page (Stripe Checkout). You need to do only three things in Stripe: activate the account, choose the payment methods and copy two keys to Johku. Johku creates the webhook (payment notifications) automatically, and you usually don't need to create it by hand.

You don't need to create a checkout, a payment link or products in Stripe (for example Create checkout, Payment Links or Product catalog). Johku creates a payment page for each order automatically. If you have already started creating a checkout in Stripe, you can delete the draft.

You don't need Stripe Connect either. If Stripe shows the guided Connect setup (Setup guide, for example Choose a pricing model) or talks about connected accounts, you can ignore it. An unfinished Connect setup does no harm.

Before you start

You need:

  • the company's Business ID (Y-tunnus) and official name

  • the company's address and phone number

  • the address of your website (the address of your Johku storefront will do)

  • the personal details and an identity document of the representative (passport, driver's license or identity card)

  • details of the owners and board members (for limited companies)

  • the IBAN of the company's bank account

  • access to the Johku admin with administrator rights

Payment processing is a paid service, and Stripe charges the costs directly from you: Johku is not a party to these.

Stripe's control panel (Dashboard) is often in English, so the menu names below are written in bold and in English, as they appear in Stripe. Stripe changes its menus from time to time. If you can't find a menu, use the direct links or the search field of the Dashboard.

Part 1: Create and activate a Stripe account

1. Create a Stripe account

  1. Go to dashboard.stripe.com/register.

  2. Enter your email address, your name and a password, and select Finland as the country. The country cannot be changed later.

  3. Confirm your email address from the message Stripe sends.

  4. Enable two-step authentication when Stripe asks for it. You need it later for handling the keys.

2. Activate the account to accept real payments

At first, a new account works only in test mode (Sandbox). To accept real payments, the company must be identified.

  1. On the home page of the Dashboard, click Activate payments or Complete your account setup. You'll also find the same form under Settings → Business → Account status.

  2. Fill in the form:

    • Business type: the company form, for example Company (limited company, Oy) or Individual / Sole proprietor (sole trader, toiminimi).

    • Business details: the company's official name and Business ID (Business ID / Company registration number), address and phone number, industry, website address (for example the address of your Johku storefront) and a short description of what you sell (for example “Experience services and online ticket sales for activities”).

    • Representative (the responsible person): name, date of birth, home address, email and phone. Stripe may ask for a Finnish personal identity code and a picture of an identity document. Upload it only through Stripe's Dashboard, never by email.

    • Owners / Directors: people who own more than 25% and the board members (limited companies).

    • Bank account (Payouts): the IBAN of the company's account. The account must be in the company's name.

    • Public details / Statement descriptor: the text shown on the customer's bank statement. Use a name the customer recognizes, for example the name of your company or brand. The text must have at least 5 characters, and it must resemble the company's name or web address. A charge the customer doesn't recognize easily leads to a chargeback.

  3. Submit the details. Stripe usually checks them quickly, but it may ask for more documents. Follow the status under Settings → Business → Account status and in the emails Stripe sends.

Done when: the Dashboard no longer shows the activation prompt, and the Account status page has no open requests.

3. Check the details shown to the customer (recommended)

  • Settings → Business → Public details: the displayed company name, the customer support email and phone, the website and the text shown on the bank statement (Statement descriptor).

  • Settings → Branding (optional): logo, icon and colors. These show on Stripe's payment page, where your customers are taken from Johku.

Part 2: Choose the payment methods

Johku takes the customer to Stripe's own payment page, which automatically shows the payment methods you have turned on in Stripe. You don't need to choose payment methods separately in Johku.

4. Choose the payment methods

  1. Go to Settings → Payments → Payment methods (direct link: dashboard.stripe.com/settings/payment_methods).

  2. If you can choose For your platform account or For your connected accounts at the top of the page, select For your platform account. Johku's payment page uses these settings. The settings on the Connected accounts side don't affect Johku's payments.

  3. If there are several configurations (configurations), make sure the default configuration (Default) is selected.

  4. We recommend turning on (Turn on):

    • Cards (Visa, Mastercard and others): required, and usually already on.

    • Apple Pay and Google Pay: they work on Stripe's payment page without extra settings. You don't need to register a domain, because the payment page is Stripe's.

    • Link (Stripe's saved cards): optional.

    • Klarna: optional, and it comes with its own terms.

  5. We recommend leaving off payment methods where the payment is confirmed with a delay (delayed notification), such as SEPA Direct Debit and bank transfers (Bank transfers). Johku keeps the reservation valid only for a limited time. If the payment is confirmed only days later, the reservation may be released before that.

Part 3: Copy the API keys

Johku needs two keys from Stripe:

Stripe's name

Starts with

Johku field

Note

Publishable key

pk_live_

Publishable key

Not secret.

Secret key

sk_live_ or rk_live_

Secret key

Secret! Don't send it to anyone by email or chat, not even to Johku support. Paste it straight into Johku.

5. Copy the keys

  1. Make sure the Dashboard is in live mode and not in test mode.

    • You recognize test mode from the text Sandbox or Test mode at the top of the Dashboard. The color of the bar varies.

    • Live keys start with pk_live_ and sk_live_ or rk_live_. Test keys start with pk_test_ and sk_test_.

  2. Go to Developers → API keys. In newer Dashboards, you'll find the same under Workbench → API keys (direct link: dashboard.stripe.com/apikeys).

  3. Under Standard keys, copy the Publishable key (pk_live_…).

  4. Get the secret key. The way depends on what the Secret key row shows:

    • Reveal live key (older accounts): click it and copy the key. A key that Stripe created for you can also be shown again later.

    • Only the Create secret key button (new accounts): new accounts have no ready-made secret key, so you create it yourself:

      1. Click Create secret key.

      2. Under Choose how you'll use this key, select Building your own integration and click Continue.

      3. Under Assign permissions to your key, select Custom permissions and give the key the permissions listed in the guide Stripe restricted key in Johku. Leave the other permissions as None. Don't select Full access.

      4. Confirm with the code Stripe sends by email or text message, give the key a name (for example “Johku”) and click Create.

  5. Copy a key you created yourself right away. Stripe shows it only once, and it cannot be shown again later. A key saved in Johku cannot be read afterwards either. Keep the Johku admin open in another tab and paste the key straight there (step 6). If the key is lost, create a new one.

  6. If you have lost the secret key or it has fallen into the wrong hands, select ⋯ → Rotate key on the row of the key and paste the new key into Johku.

Note: If you create the key yourself, also on an older account, give it the permissions listed in the guide Stripe restricted key in Johku. A key you created yourself can start with sk_live_ or rk_live_, and both work in Johku.

Part 4: Connect Stripe to Johku

6. Paste the keys into Johku

  1. Sign in to the Johku admin.

  2. Open Settings → General settings → Paying.

  3. Click the Stripe heading. You can also find the panel in the settings search with the word “Stripe”.

  4. Title: the name of the payment method in the storefront, for example “Card, Apple Pay, Google Pay”. If you leave the field empty, the name is “Stripe”.

  5. Secret key: sk_live_… or rk_live_…

  6. Publishable key: pk_live_…

  7. Webhook signing secret: leave empty. Johku fills in the field itself.

  8. Surcharge (€ or %): optional. Note that in the EU you generally may not charge consumers an extra fee for a card or mobile payment.

  9. Click Save. On saving, Johku automatically creates a webhook in your Stripe account and saves its signing secret. A webhook is a payment notification with which Stripe tells Johku that a payment succeeded.

After saving, the secret key and the webhook signing secret are hidden for security reasons: the field shows only the last characters of the key and the text Saved and hidden for security. You can replace the key with the Change button or delete it with the trash button, but you cannot copy it from Johku.

7. Enable the payment method

  1. Open the Stripe panel again. If the field has not been filled in, refresh the browser page.

  2. Check that the Webhook signing secret is now saved: the field shows the hidden secret and the text Saved and hidden for security. If the field was left empty, see If something goes wrong.

  3. At the bottom of the panel, select the Enabled and selectable for online orders checkbox. The checkbox is gray until all three key fields are filled in.

  4. Click Save.

The heading of the Stripe panel now shows the label Online.

8. Check the webhook in Stripe (recommended)

  1. In Stripe, go to Developers → Webhooks, or in newer Dashboards Workbench → Webhooks (direct link: dashboard.stripe.com/webhooks).

  2. The list should have the address created by Johku, https://johku.com/api/stripe/.

  3. Don't delete or change it.

Part 5: Test with a real payment

9. Make a test purchase

  1. Open your Johku storefront and add an inexpensive product to the shopping basket. Stripe's minimum payment is €0.50. For the test, you can make a hidden €1 product.

  2. Select Stripe (or the title you gave) as the payment method and pay with your own card. Apple Pay and Google Pay show only if your device supports them.

  3. Check:

    • After the payment, you return to the thank-you page of the storefront.

    • You get the order confirmation and any tickets by email.

    • The order shows as paid in Johku, and a transaction has been created from it.

    • In Stripe, the payment shows under Payments with the status Succeeded.

    • In Stripe, under Webhooks → (Johku's webhook) → Event deliveries, the events have the status Delivered (200).

  4. Refund the test purchase: find the payment under Payments in Stripe, select Refund and do Refund transaction in Johku.

  5. If you made a test product, keep it hidden or delete it after the test so that it doesn't show in your storefront.

The card details are entered on Stripe's payment page and are not saved in Johku. You don't add Stripe's banner to Johku yourself: it is shown at the bottom of the order page automatically when the customer selects Stripe as the payment method.

The same keys in several Johku shops of the same company

The saved secret key and webhook signing secret cannot be copied from Johku, so get them from Stripe.

  1. Publishable key: copy it from API keys in Stripe or from the Stripe panel of your first shop.

  2. Secret key: if, under API keys, Stripe shows the Reveal live key button, copy the key from there. If you use a key you created yourself, which Stripe does not show again, create a separate key for the other shop as described in step 5.

  3. Webhook signing secret: open Webhooks in Stripe, click Johku's webhook (https://johku.com/api/stripe/) and copy the secret from Signing secret → Reveal (whsec_…).

  4. Paste the keys and the secret into the fields of the Stripe panel of your other Johku shop.

  5. Select Enabled and selectable for online orders and save.

  6. Test paying in that shop.

Good to know

  • Refunds: Stripe payments are refunded to the customer in Stripe's service (Payments → the payment → Refund). In addition, do Refund transaction in Johku: it records the refund in Johku's reports but does not return the Stripe payment.

  • Payouts: Stripe pays your sales out to your bank account automatically. The first payout usually comes with a delay of about a week, and you can change the schedule under Settings → Payouts. Stripe's fees are deducted from the payouts.

  • Visibility of the keys in Johku: the saved secret key and webhook signing secret are not shown to anyone in the Johku admin, not even to administrators. Keep the keys safe in Stripe.

If something goes wrong

The webhook signing secret was not filled in on saving

Johku does not create a webhook if Stripe already has a webhook to the same address, for example because of your other Johku shop or because one was made by hand.

  1. Open Webhooks in Stripe and click Johku's webhook (https://johku.com/api/stripe/).

  2. Under Signing secret, click Reveal and copy the secret (whsec_…).

  3. Paste it into the Webhook signing secret field in Johku and save.

Alternatively, you can delete the old webhook from Stripe, delete the signing secret saved in Johku with the trash button of the field and save again, and Johku creates the webhook again. Don't do this if the same webhook is in use in your other Johku shop.

The payment succeeded in Stripe, but the order stayed unpaid in Johku, and Stripe shows webhook error 400

The webhook signing secret does not match the webhook in Stripe. The most common cause is that the keys were changed from test keys to live keys, but the signing secret is left over from test mode.

  1. In Johku, delete the saved Webhook signing secret with the trash button of the field.

  2. Save. Johku now creates a live mode webhook.

  3. Open the panel again, select Enabled and selectable for online orders and save.

If Stripe already has a live mode webhook to the same address, copy its secret by hand as described in the previous section. Other checks: The payment was charged but the order doesn't show in Johku.

Saving gives an error when you add the keys

  • The secret key is copied in full, and it has no spaces at the start or end.

  • The publishable key and the secret key are from the same mode, so both are live or both are test.

  • If you use a restricted key (rk_), it has the permissions it needs.

The customer doesn't see Apple Pay or Google Pay

  • The payment method is turned on under Settings → Payments → Payment methods.

  • The wallet is in use on the customer's device. Apple Pay shows most reliably in Safari and on Apple devices.

You refunded the order in Johku, but the customer didn't get their money

Make the refund in Stripe's service. A refund in Johku doesn't move money for Stripe payments. Checklist: The customer hasn't received a refund.

I want to test before I accept real payments

You can use the keys of Stripe's test mode (Sandbox / Test mode) (pk_test_ / sk_test_) and the test card 4242 4242 4242 4242.

  • When you move to real payments, replace them with the live keys using the Change button and at the same time delete the saved Webhook signing secret with the trash button before saving.

  • With test keys, the real customers of your storefront cannot pay. So test at a quiet time.

Related topics