FCHubFCHub.co

Configuration

Connect your Przelewy24 merchant account, configure payment channels, and set up credentials for FluentCart.

Where to Find Settings

The Przelewy24 configuration lives inside FluentCart's payment settings:

FluentCart > Settings > Payment Methods > Przelewy24

Click the Przelewy24 card to open the configuration panel. All settings are saved through FluentCart's standard settings interface.

Credentials

Przelewy24 requires four credentials to process payments. You will need separate sets for sandbox (test) and live (production) environments.

These are your production credentials from the Przelewy24 merchant panel:

FieldDescription
Merchant IDYour Przelewy24 merchant identifier
Shop ID / POS IDYour point-of-sale identifier. Leave empty if it's the same as your Merchant ID
CRC KeyThe CRC checksum key used for signing transactions
API KeyAlso called the "Report Key" in the P24 panel. Used for API authentication

Finding Your Credentials in the P24 Panel

Log in to the Przelewy24 Panel

Go to panel.przelewy24.pl (production) or sandbox.przelewy24.pl/panel (sandbox).

Navigate to My Data > API Configuration

Your Merchant ID is displayed at the top of the dashboard. The CRC Key and API Key (Report Key) are found under the API configuration section.

Copy Credentials to FluentCart

Paste each value into the corresponding field in FluentCart's Przelewy24 settings. Save the settings — the plugin will test the API connection and confirm if the credentials are valid.

Connection Verification

When you save the settings, the plugin automatically calls the Przelewy24 testAccess API endpoint. If the connection succeeds, you will see:

Przelewy24 connection verified!

If it fails, you will see the specific error from the API. Common causes:

  • Incorrect API Key or CRC Key
  • Using sandbox credentials with FluentCart in live mode (or vice versa)
  • Merchant account not fully activated on the P24 side

Store Mode

FluentCart Controls the Mode

The sandbox/live mode is controlled by FluentCart's global Store Mode setting, not by a toggle inside the Przelewy24 configuration. The plugin reads order_mode from FluentCart's store settings and uses the corresponding credential set.

If FluentCart is in Test mode, the plugin uses your sandbox credentials and connects to sandbox.przelewy24.pl. In Live mode, it uses your production credentials and connects to secure.przelewy24.pl.

Payment Channels

Payment channels control which payment methods are offered to your customers. Each channel is a toggle that maps to a Przelewy24 channel bitmask flag:

ChannelBitmaskDefaultDescription
Credit/debit cards1EnabledVisa, Mastercard, Apple Pay, Google Pay
Online transfers2EnabledFast bank transfers (mTransfer, iPKO, Pekao24, etc.)
Traditional transfer4DisabledManual bank wire with provided payment details
BLIK8192EnabledMobile payment via 6-digit code
24/7 payments16DisabledRestricts to methods available around the clock
Installments128DisabledPay-later installment options
Wallets256EnabledPayPal, SkyCash, and other digital wallets

The plugin combines the enabled channels into a single bitmask integer and sends it with each transaction registration. If no channels are explicitly enabled, the plugin defaults to bitmask 63 (all basic channels).

Installments Agreement

The installments channel requires a separate agreement with Przelewy24. Contact your P24 account manager to enable installment payments on your merchant account before enabling this channel.

Payment Time Limit

The Payment time limit setting controls how long a customer has to complete their payment on the Przelewy24 page before the session expires. Available options:

  • No limit (0)
  • 5 minutes
  • 10 minutes
  • 15 minutes (default)
  • 30 minutes
  • 60 minutes

This value is sent as timeLimit in the transaction registration request.

Card Recurring Payments

The Card recurring payments toggle enables subscription billing via card-on-file. When enabled:

  • The subscription module registers with FluentCart
  • Initial subscription payments force the cards channel (bitmask 1) so Przelewy24 tokenizes the card
  • After successful payment, the plugin fetches and stores the card reference ID (refId) for future charges

When disabled, the subscription module is not loaded, and FluentCart won't offer recurring billing through Przelewy24.

Recurring Requires P24 Agreement

Card recurring payments require a separate agreement with Przelewy24 for card-on-file transactions. Contact your P24 account manager to enable this feature on your merchant account.

Webhook URL (IPN)

The plugin automatically sends the webhook URL with every transaction registration. The URL follows this format:

https://yoursite.com/?fluent-cart=fct_payment_listener_ipn&method=przelewy24

This URL is generated by FluentCart's PaymentHelper class and sent as the urlStatus parameter. You do not need to configure this URL manually in the Przelewy24 panel — the plugin includes it in every API call.

The webhook URL is displayed in the Przelewy24 settings panel in FluentCart for your reference.

No Manual IPN Configuration

Unlike some payment gateways, FCHub Przelewy24 does not require you to set a global IPN URL in the Przelewy24 merchant panel. The URL is sent per-transaction, so the gateway always knows where to send notifications.

Hardcoding Credentials via wp-config.php

For security or deployment automation, you can define credentials as PHP constants in your wp-config.php file. When constants are defined, they take priority over database-stored values.

wp-config.php
define('FCHUB_P24_LIVE_MERCHANT_ID', '123456');
define('FCHUB_P24_LIVE_SHOP_ID', '123456');
define('FCHUB_P24_LIVE_CRC_KEY', 'your-live-crc-key');
define('FCHUB_P24_LIVE_API_KEY', 'your-live-api-key');

Full Constants Reference

ConstantModeCredential
FCHUB_P24_LIVE_MERCHANT_IDLiveMerchant ID
FCHUB_P24_LIVE_SHOP_IDLiveShop ID / POS ID
FCHUB_P24_LIVE_CRC_KEYLiveCRC Key
FCHUB_P24_LIVE_API_KEYLiveAPI Key
FCHUB_P24_TEST_MERCHANT_IDTestMerchant ID
FCHUB_P24_TEST_SHOP_IDTestShop ID / POS ID
FCHUB_P24_TEST_CRC_KEYTestCRC Key
FCHUB_P24_TEST_API_KEYTestAPI Key

Next Steps

On this page