# Przelewy24

https://docs.wisecp.com/en/przelewy24-module

Collect payments through the Przelewy24 panel, from bank transfers to BLIK and cards, and charge renewal invoices to cards your clients store there.

## Reaching the Screen

Go to **Settings → Financial → Payment Gateways**, open **All Modules** and click the Przelewy24 card: `{admin}/modules/payment?module=Przelewy24`

Tick **Status** and save to list the method on the payment step as **Pay with Przelewy24**. Use [Payment Gateways](https://docs.wisecp.com/en/payment-modules) to order the methods clients see.

## What Is on the Screen

The card holds your Przelewy24 identifiers and keys, the sandbox switch, the panel options, card storage and the shared gateway settings.

On the payment step the client clicks **Continue to Przelewy24** and pays on its panel. Przelewy24 notifies your site, which verifies the payment before the invoice closes.

Cards can be stored and charged later for renewal invoices. The module does not start subscriptions.

## Before You Configure It

- A Przelewy24 merchant account with its merchant ID, CRC key and API key. The API key is the reports key under **My data → API data and configuration**.
- Separate sandbox credentials for testing.
- Card services enabled on the account, if clients should store cards.
- A currency your Przelewy24 account accepts. Use **Converting Currency** to charge in it, for example in PLN.

## Fields

- **Status**: Turns the module on. While it is off the other fields stay locked and clients are never offered the method.
- **Merchant ID**: Required. The account identifier from your Przelewy24 panel.
- **Shop ID (POS ID)**: Optional. Left empty, the merchant ID is used, which suits a single-shop account.
- **CRC Key**: Required. Signs every request. The sandbox and production keys differ.
- **API Key**: Required. The reports key, used as the password of the API connection.
- **Test Mode**: Uses the sandbox with your sandbox credentials. Off by default.
- **Payment Channel**: Limits the panel to one group of methods, such as Cards, Bank transfers, BLIK or Wallets. The default, All methods enabled on the account, lets the client choose.
- **Payment Time Limit (Minutes)**: How long the client has to finish the payment. The default 0 means no limit, and the highest value is 99.
- **Wait For The Result**: Returns the client only after the payment result arrives. Off by default.
- **Card Storage**: Offers clients to store their card for automatic renewal payments. Off by default, and card services must be enabled on your account.

For commission, currency conversion, amount and country limits, see [Payment Configuration](https://docs.wisecp.com/en/payment-modules). **Callback URL**, **Success URL** and **Failed URL** cannot be edited. Each payment sends its notification and return addresses to Przelewy24, so there is nothing to register in its panel.

## Tasks

### Connect your Przelewy24 account

1. In the Przelewy24 sandbox panel, copy the merchant ID, CRC key and API key.
2. Open the Przelewy24 card under **All Modules** and tick **Status**.
3. Enter the three values, leave **Shop ID (POS ID)** empty for a single shop and tick **Test Mode**.
4. Click **Save Changes**. The method now appears on the payment step.

### Run a test payment

1. Place a small order as a client and choose **Pay with Przelewy24** on the payment step.
2. Click **Continue to Przelewy24** and complete a sandbox payment.
3. Once Przelewy24 reports the payment and your site verifies it, the invoice is marked as paid.

### Switch to live

1. Replace the merchant ID, CRC key and API key with your production values.
2. Untick **Test Mode** and save.
3. Repeat the test with a real low-value payment.

### Offer saved cards and automatic payment

1. Enable card services on your Przelewy24 account and tick **Card Storage**.
2. A signed-in client ticks **Save this card for future payments** on the payment step, and the panel then offers only card payment. Ticking **Also use it to pay renewal invoices automatically** turns on auto-pay.
3. The card is listed under **Saved Cards** in the client's account. With auto-pay on, renewal invoices are charged to it without the client.

To let clients add a card from their account, open [Payment Gateways](https://docs.wisecp.com/en/payment-modules) → **Initial → Card Storage Module**, select Przelewy24 and save. Guests and shared payment links do not see the save option.

### Refund a payment

1. Open the invoice from [Invoice Detail](https://docs.wisecp.com/en/invoice-detail-overview).
2. Under **Summary → Change Status**, select **Refunded** and **Refund via payment gateway**. Click **Update Status**.
3. Przelewy24 returns the amount this invoice paid, and the invoice is marked as refunded.

Repeating the same invoice's refund does not send it twice.

## Things to Watch

> **Refunds after a converted payment**
> 
> With **Converting Currency** set, one Przelewy24 payment can settle several invoices in another currency. Each refund is then the invoice's share of that charge, and the shares add up exactly to it. In 5.0-beta.4 and earlier, each share is rounded on its own. The last refund can then pass what is left, and Przelewy24 refuses it. Refund that remainder in the Przelewy24 panel, then mark the invoice **Refunded** with **Add as expense**.

> **Verification closes the invoice**
> 
> Przelewy24 transfers the money only after your site verifies the payment. If a client paid but the invoice is still open, Przelewy24 repeats its notification for several hours.

## Required Privileges

Settings require **Payment Gateways** (`MODULES_PAYMENT_SETTINGS`). Invoice changes require **Billing → Edit** (`INVOICES_OPERATION`).

## Related Articles

- [Payment Configuration](https://docs.wisecp.com/en/payment-modules)
- [Invoice Detail](https://docs.wisecp.com/en/invoice-detail-overview)
- [Subscriptions](https://docs.wisecp.com/en/subscriptions)
