Paynow integration through the API

A Paynow integration from VulCode connects the Paynow gateway from the mBank group to your store, app, panel or booking system through the API, from PLN 999 (about EUR 220), usually in 2-3 days. Customers pay by BLIK (Poland's mobile payment system), fast transfer or card, every request and notification is signed, an order starts only once the payment is confirmed, and you issue refunds from your own panel.

Paynow

Seven Paynow payment statuses

Paynow documents the whole payment cycle. Each status has its own reaction in your system.

  1. 01 NEW

    Payment accepted, the customer has not picked a method yet. Only when no method was set up front.

    • 10 days unchanged EXPIRED

      The validity passed. A payment in NEW or PENDING for 10 days moves here on its own.

  2. 02 PENDING

    Method chosen and fixed. We wait for the customer to finish paying.

    • not authorised REJECTED

      The buyer did not authorise it. The order stays open for another attempt.

    • payment error ERROR

      A problem during payment. We show the customer what next and log the event.

  3. 03 CONFIRMED

    Processed, the money reached the recipient. We start fulfilling the order.

ABANDONED
The buyer retried a failed payment. The new one has a new id and is tied to the order by its number.

Tests that simulate failures

Paynow's test environment has codes that trigger specific behaviour. We use them to check paths you cannot trigger in a live store.

Sandbox inputWhat happensWhat we test
BLIK 222222The payment stays in PENDING.The waiting screen, and that the order is not fulfilled before confirmation.
BLIK 333334Authorisation fails on an expired code.The customer message and the retry.
BLIK 444444NEW for 20 seconds, then ERROR.The status change and error handling in your panel.
Transfer of 9,999.99 PLNThe payment fails.The return page after a failed payment.

For the tests you open a separate Paynow test account, or we use the public test keys.

Payment built into your system, not beside it

A ready Paynow plugin is enough only when payment ends with a status change in the store platform itself. When payment is part of an app, a panel or a booking, we write an API integration that handles every status, refund and retry.

We install it, add the keys from the Paynow panel and check it with test payments.

A Paynow integration in your code, with signatures, protection against double payments and every status handled.

  1. 01 A ready plugin
  2. 02 An API integration

When

  1. The store runs on a platform Paynow has a plugin for.
  2. Payment ends with a status change in the platform itself.
  1. Payment happens in an app, a client panel or a booking system.
  2. You want BLIK or a card on your own page with no redirect (white label).
  3. You need payment links, refunds from your panel or a marketplace.

A ready plugin

When

  • The store runs on a platform Paynow has a plugin for.
  • Payment ends with a status change in the platform itself.

We install it, add the keys from the Paynow panel and check it with test payments.

An API integration

When

  • Payment happens in an app, a client panel or a booking system.
  • You want BLIK or a card on your own page with no redirect (white label).
  • You need payment links, refunds from your panel or a marketplace.

A Paynow integration in your code, with signatures, protection against double payments and every status handled.

What flows between your system and Paynow

Each kind of data has its direction and its trigger.

Your systemPaynow

Payment

the customer clicks "Pay"

amount, order number, description, buyer email

Status change

every payment status change

a notification to the address set in the Paynow panel

Status on demand

the customer returns, or no notification came

a status query by payment id

Refund

a decision in your panel

a refund and its status, with an option to cancel

Payment methods

showing the checkout

available methods for your own picker

How we roll out Paynow in a custom-built store: 5 steps

A typical Paynow rollout in a custom-built store.

Scenario

00 / 05

Steps

  1. 01 Keys and sandbox
  2. 02 Payment and signatures
  3. 03 Sandbox scenarios
  4. 04 Refunds from the panel
  5. 05 Production

Step 01 of 05

Keys and sandbox

You register a Paynow test account and we plug the keys into the shop's test environment.

Step 02 of 05

Payment and signatures

We build payment creation with a signature and Idempotency-Key, and notification handling with a signature check.

Step 03 of 05

Sandbox scenarios

With the test codes we walk through PENDING, rejection and error, plus a payment retry.

Step 04 of 05

Refunds from the panel

We add full or partial refunds and their status on the order.

Step 05 of 05

Production

After your sign-off we switch the address and keys to production and check the first real payment.

Result

Every payment shows its Paynow status on the order, and the order only moves after CONFIRMED.

Terms from the Paynow documentation

Words that come up during the rollout.

Api-Key
The key that identifies the shop in requests. From the Paynow panel, separate for sandbox and production.
Signature-Key
The secret for HMAC signatures. It never leaves the server.
Idempotency-Key
A unique request value. A resent request with the same key creates no second payment.
externalId
Your order id, which ties payments together, retries included.
White label
A payment with no redirect: the customer picks a method and pays in your interface.
Payment recovery
Retrying a payment in PENDING, REJECTED or ERROR. It needs the ABANDONED status handled.

Common questions about Paynow

The main questions about Paynow: account, cost, timing, refunds and code.

Do I need an mBank account?
Yes, you need a Paynow merchant account, which mBank offers. Paynow sets the agreement terms, which you check when opening the account. We only need the sandbox and production keys from it.
How long does it take?
Usually 2-3 days. The exact dated schedule comes with the free quote, and if anything is going to move, you know in advance.
How much does a Paynow integration cost?
A Paynow integration through the API costs from PLN 999 (about EUR 220) under our API and integrations service, and the rollout usually takes 2-3 days. The figure depends on how many systems we connect, which payment methods and refunds we handle and what should happen on an error. You pay the transaction commission separately, directly to Paynow. The quote is free and comes back within an hour.
What if the customer closes the page after paying?
The status arrives as a notification to your server, so the order changes anyway. The customer's return confirms nothing.
Can a failed payment be retried?
Yes, Paynow then creates a new payment tied to the order. The option has to be on in the panel and the ABANDONED status handled.
Does Paynow support marketplaces?
Yes, Paynow has a solution for marketplaces. Before quoting we check with you whether your sales model fits it.
Can an order move before the payment is confirmed?
No. The order moves only after the CONFIRMED status, when the money has reached the recipient. Every other status is recorded on the order, and the customer sees what to do next.
Can I issue refunds from my own panel?
Yes. You order a full or partial refund in the store panel, without signing in to Paynow, and its status shows on the order. A refund can also be cancelled.
How do you check the integration before launch?
In the Paynow test environment. With test BLIK codes and a transfer of the test amount we trigger waiting, rejection and error, and a scenario passes only when the customer and the panel see what we expect. The production keys go in after your sign-off.
Will the Paynow integration code be mine?
Yes. Once the work is accepted and paid in full, the economic copyright in the Paynow integration code passes to you and you get the repository with run instructions. Open source libraries keep their own licences.
What if Paynow changes its API?
We adjust the integration to Paynow's changes: within the 90 days of support included after launch, later under a maintenance plan or as a separate short order. We follow Paynow's change notices and tell you in advance what needs fixing.

Sources

Technical details come from the Paynow developer portal.

Describe your project.

A free quote comes back within an hour during working hours.