PayU configuration

Zaktualizowano: 2026-08-14

PayU integration is in preparation and will arrive in one of the upcoming erphome.pl updates. The documentation below describes the planned configuration. The currently available gateway is Przelewy24.

PayU is a payment gateway supporting BLIK, fast transfers, cards, Google Pay and Apple Pay. Configuration requires a PayU merchant account and four values from their panel — including OAuth data for authorizing transactions.

Required data from the PayU panel

Sign in at merch.payu.com (the PayU seller panel).

Field in erphome.plWhere to find it in the PayU panel
POS IDShops → Your shop → Online payments — the "Point of payment identifier (pos_id)" field
MD5 key (2nd)Shops → Your shop → Online payments — the "Protocol signature (MD5)" section, Second key
OAuth client_idShops → Your shop → Online payments — the "OAuth protocol" section, "client_id" field
OAuth client_secretShops → Your shop → Online payments — the "OAuth protocol" section, "client_secret" field

PayU has two MD5 keys. erphome.pl uses the second key (used to verify notifications). Don't confuse it with the first key (used to sign requests — erphome.pl doesn't need that one).

Configuration in erphome.pl

While the integration is in preparation, the PayU option in Settings → Payments is greyed out (marked "coming soon") — you cannot select it yet. The description below shows how the configuration will work once it launches.

Once PayU becomes available, you'll go to Settings → Payments and choose PayU as the gateway.

PayU configuration form — POS ID, MD5 key, OAuth client_id and client_secret

You'll fill in the four fields, uncheck "Sandbox (test) mode" for a production deployment, and click "💾 Save payment settings".

Webhook — configuration in the PayU panel

Where to set it in the PayU panel:

  1. Go to merch.payu.com
  2. Go to Shops → Your shop → Notifications
  3. Click Add notification or edit an existing one
  4. Enter the notification URL:
https://erphome.pl/payments/booking_webhook.php?tenant=YOUR_SLUG&apt=APARTMENT_SLUG

The exact URL (with your slug) is shown in erphome.pl under Settings → Payments after selecting PayU.

  1. Select the COMPLETED event (or all events)
  2. Save

As with P24, the webhook URL is different for each apartment. If you handle several apartments, each requires a separate notification — or a separate shop in PayU.

How PayU authorizes transactions (OAuth)

erphome.pl uses the OAuth protocol to create orders in PayU:

  1. For each payment, erphome.pl fetches a temporary access token using client_id and client_secret
  2. The token is used to create a PayU order with the booking data
  3. The guest is redirected to the PayU payment page
  4. After payment, PayU sends a webhook — the signature is verified with the MD5 (2nd) key

If client_id or client_secret are wrong, the guest will see an error page instead of the payment form.

Sandbox (test) mode

The PayU sandbox is a separate environment with a separate account and data.

Test data:

  • Register a sandbox account at secure.snd.payu.com
  • Enter the OAuth data and POS ID from the sandbox account into erphome.pl
  • Tick the "Sandbox (test) mode" checkbox

PayU test card (sandbox):

FieldValue
Card number4444 3333 2222 1111
ExpiryAny future date
CVV123
ResultSuccess

Before going to production: uncheck sandbox, change the data to production data and update the webhook URL in the PayU panel.

Verifying the configuration

Make a test booking in sandbox mode. If the status changes to Confirmed automatically after payment — the configuration is correct. If the booking stays Awaiting payment — check that the webhook URL is set correctly in the PayU panel.


Related articles: How online payments work · Przelewy24 configuration · How the booking process works · Payments in a booking

Czy ten artykuł okazał się pomocny?