Skip to Content
Account
Enter the email address on your account.
Forgot Your Username?
Enter your password.
Forgot Your Password?

Or continue with

J2Commerce 6

Paytrail

4 Min Read

Documentation current for Paytrail v6.0.9. Last checked November 13, 2026.

On This Page

The Paytrail plugin adds Paytrail, a Finnish payment gateway, as a payment method at J2Commerce checkout. Customers are redirected to Paytrail to pay.

It supports saved cards, subscription renewals with a saved card, surcharges and refunds from the order screen. Paytrail accepts EUR only.

Requirements

  • J2Commerce 6.3.6 or later.
  • Joomla 6.0.0 or later.
  • A Paytrail merchant account with a merchant ID and secret key.
  • A store currency of EUR.

Installation

  1. Go to System -> Install -> Extensions.
  2. Upload the plugin package.
  3. Go to J2Commerce -> Payment Methods (or System -> Plugins) and open Paytrail.
  4. Set Status to Enabled, enter your credentials and save.

Settings

Settings are grouped in tabs.

Basic Settings

SettingWhat It DoesDefaultOptions
Display NameName shown for the method at checkout.EmptyText
Display ImageImage shown for the method at checkout.NoneMedia file
Test ModeUses your Paytrail test credentials instead of live ones.YesYes, No
Merchant IDYour Paytrail merchant account ID. Shown when Test Mode is No.EmptyText
Secret KeyYour Paytrail HMAC secret key. Shown when Test Mode is No.EmptyText
Test Merchant IDYour own Paytrail test merchant ID. Shown when Test Mode is Yes.EmptyText
Test Secret KeyYour own Paytrail test secret key. Shown when Test Mode is Yes.EmptyText
HMAC AlgorithmSignature algorithm for requests. SHA-512 is recommended.SHA-512SHA-512, SHA-256
Language OverrideSets the language of the Paytrail payment page. Auto uses the browser locale.Auto (browser locale)Auto (browser locale), Finnish, Swedish, English
Thank You Message ArticleArticle shown after a successful payment.NoneJoomla article
Cancel Message ArticleArticle shown when the customer cancels the payment.NoneJoomla article

Saved Cards

SettingWhat It DoesDefaultOptions
Enable Saved CardsLets customers save a card for future purchases and subscription renewals.NoYes, No
Payment GroupsLimits the Paytrail payment methods shown. Leave empty to show all.EmptyCredit Card, Mobile, Bank, Credit / BNPL

Order Statuses

SettingWhat It DoesDefaultOptions
Payment Order StatusStatus set when payment succeeds.Status ID 1Any order status
Pending Order StatusStatus set when payment is pending or delayed.Status ID 4Any order status
Failed Order StatusStatus set when payment fails or is cancelled.Status ID 3Any order status
Change Status on RefundUpdates the order status when a refund is issued.NoYes, No
Refund Order StatusStatus set after a refund is submitted to Paytrail. Shown when Change Status on Refund is Yes.Status ID 6Any order status

Surcharge

SettingWhat It DoesDefaultOptions
Surcharge NameLabel the customer sees for the fee, for example Payment fee.EmptyText
Surcharge Percent (%)Percentage of the order total added as a surcharge.0Number, 0 or more
Surcharge Fixed AmountFixed amount added as a surcharge, in the store currency.0Number, 0 or more
Surcharge Tax ClassTax profile applied to the surcharge. Leave empty for no tax.EmptyAny tax profile

Restrictions

SettingWhat It DoesDefaultOptions
Geozone RestrictionLimits the method to customers in a geozone.EmptyAny geozone
Minimum SubtotalSmallest cart subtotal for which the method is offered.EmptyNumber
Maximum SubtotalLargest cart subtotal for which the method is offered.EmptyNumber

Advanced

SettingWhat It DoesDefaultOptions
Plugin Sub-TemplateLayout used for the checkout payment screens.EmptyAvailable sub-templates
Show Dashboard IconShows a Paytrail quick icon on the J2Commerce dashboard.NoYes, No
Dashboard Icon LabelLabel under the quick icon. Shown when Show Dashboard Icon is Yes.Paytrail (hint)Text
Dashboard Icon ClassIcon CSS class for the quick icon.fa-solid fa-credit-cardText
On After PaymentCustom text or code run after payment.EmptyText area
Debug ModeLogs extra Paytrail API details. Turn off in production.NoYes, No

Checkout and Refunds

At checkout the customer clicks Pay with Paytrail and is redirected to Paytrail. After payment they return to the store and the order status is updated from the Order Statuses settings.

With Enable Saved Cards on, customers can pick a saved card or add a new one. To refund, open the order in the admin and use Refund Order. Choose a full or partial amount and click Process Refund. Paytrail processes refunds asynchronously.


Common Setups

  1. Leave Test Mode on and enter your test credentials.
  2. Place a test order and confirm the status changes.
  3. Set Test Mode to No and enter your live Merchant ID and Secret Key.

Troubleshooting

  • "Paytrail only supports EUR transactions." Set the store currency to EUR.
  • "Paytrail credentials are not configured." Enter the Merchant ID and Secret Key for the active mode (live or test).
  • "Refund amount exceeds the available refundable total." Enter an amount no higher than the maximum shown.
  • Install is refused. Update J2Commerce to 6.3.6 or later.

Uninstalling

  1. Go to System -> Manage -> Extensions.
  2. Search for Paytrail, select the plugin and click Uninstall.

Related Products

PayTrail

Payment J2Commerce

Let Finnish shoppers pay through their own bank's button with Paytrail, formerly Checkout.fi, which puts the full provider grid on your checkout.

Related Products

PayTrail

Payment J2Commerce

Let Finnish shoppers pay through their own bank's button with Paytrail, formerly Checkout.fi, which puts the full provider grid on your checkout.

Still stuck? Our team can help.

Back to Top