Skip to content
BlokloDocumentation

Payments on your site

A site can accept online payments through Stripe, Przelewy24 or PayU, using your own account with the provider.

The money goes directly to your account with the payment provider. The provider credentials are stored in the connection and never placed in the site's code.

Setup

  1. Create a Stripe, Przelewy24 or PayU connection in Connectors (fields described in Stripe, Przelewy24 and PayU).
  2. Attach the connection to the project: on the connection page pick the project in Attach to a project…, or in the editor use Settings → Connectors → Attach an existing connection….
  3. Describe in the chat what should be paid for, for example “a 50 PLN deposit when booking” or “payment for the order in the cart”.
  4. Test the payment in test mode (Stripe test keys or the Przelewy24 or PayU sandbox), and only then switch to live credentials.

Orders and statuses

  • Orders with payments are stored in the project's data with a status: pending, paid or cancelled.
  • The status changes when the provider confirms the payment. In Stripe this needs a webhook with its secret entered in the connection; for Przelewy24 and PayU, Bloklo sends the notification address itself with every transaction.
  • The Publish window shows in the Payments row which payment connection is attached to the project.
  • When an order is paid, the customer gets a confirmation e-mail, and the owner gets a “Paid order” e-mail at the addresses from Data and forms → Notifications (a test payment has “[Test]” in the subject) and an entry in the Bloklo inbox.
Important

A Stripe connection requires the webhook secret. Without it the site does not accept online payments (customers see a note that the shop does not take payments yet instead of the pay button), and the Bloklo inbox gets a daily entry with instructions.

Prices and the payment price list

Bloklo calculates the payment amount on the server from the project's price list (the src/cennik.json file): products with variants and options, discount codes, delivery costs and surcharges. The customer's browser only sends which products were chosen and how many, so the price cannot be changed before paying. The agent creates and updates the price list together with the prices on the site.

  • A product marked as unavailable in the price list cannot be paid for online.
  • If a price on the site differs from the price list, the payment does not start and the customer is asked to refresh the page. In the shop preview, such a mismatch is shown at the top of the page.
  • The published site uses the price list from the last publication. Price changes made in the editor take effect on the site only after publishing.
  • An order is marked paid only when the provider confirms exactly the order amount.
Important

Online payment requires the payment price list. A site created before it was introduced will not accept payments until the agent adds the price list; ask it to “Add a payment price list for the shop products” and publish the site.

Which provider to choose

ProviderMethodsGood choice when
Przelewy24BLIK, instant bank transfers, cardscustomers pay mostly in Poland, in PLN
PayUBLIK, pay-by-link transfers, cardsthe shop already has a PayU agreement or customers pay mostly in Poland
StripeCheckout, cards, BLIK, subscriptionsyou need international payments or subscriptions
Tip

Paying for Bloklo plans is a separate matter, described in Plans.

Common questions

Whose account receives the money?

The money goes directly to the site owner's account with the payment provider, Stripe, Przelewy24 or PayU, not to a Bloklo account. The provider credentials are stored in the connection and never placed in the site's code, so visitors cannot see them. Orders with payments are stored in the project's data together with their payment status.

When does an order change to paid?

An order changes to paid when the provider confirms the payment. In Stripe this needs a webhook with its secret entered in the connection, so without the secret the site does not accept payments at all. For Przelewy24 and PayU, Bloklo sends the notification address itself with every transaction, so nothing needs to be set up.

How do I test payments before going live?

Test payments in test mode: with sk_test_… test keys in Stripe and in the sandbox environment in Przelewy24 and PayU, where payments are not real. Only after a successful test order is it time to enter live credentials in the connection. In Stripe the webhook must be created separately for test mode and for live mode.

Something unclear or out of date? Contact us