Terminal Payments
Hyvä POS is on the App Store
The free app is out for iPhone, iPad and Mac: install it from the App Store, connect your Magento store and sell. PRO, the Magento module with a license per terminal, follows shortly. News and pricing are at hyva.io/pos.
An integrated terminal means the app drives the card machine: the amount appears on the terminal on its own, the customer taps or inserts, and the sale completes when the payment confirms. The amount is not typed twice, so a typo on the terminal cannot charge the wrong amount.
How Provider Integrations Work
Terminal integrations are built into the native app: each payment provider's terminal protocol is implemented and tested by Hyvä, in partnership with that provider. It is not a plug-in system where any PSP can be added by a third party.
- Mollie: sales and refunds, on the free tier and PRO.
- PAY.: sales through PAY. terminals and PAY.POS phones over Cloud Connect, and refunds to the card that paid, on the free tier and PRO.
- Adyen: sales through Adyen terminals over Adyen's cloud Terminal API, and refunds to the card that paid, on the free tier and PRO.
- Stripe: in development, release date unknown.
The Flow at the Register
- The cashier picks Card at checkout. The payment panel shows the paired terminal by name; a counter with several terminals configured switches per payment from the same panel.
- The cashier taps pay. The app creates a payment with the provider and the amount appears on the terminal; for a split sale, only the card portion. A connected customer display shows "Please pay" with the amount.
- The customer taps or inserts. The app polls the payment every two seconds while an overlay shows the waiting state.
- On confirmation the overlay closes and the app places the Magento order, recording the provider's payment id and the card metadata with the sale. The payment happens first; the order is placed only for a collected payment.
There is no tip prompt in the flow: Hyvä POS does not offer tipping.
What the Cashier Sees While Waiting
The overlay tracks the payment from the register side:
- Waiting: the terminal's name and the amount, with Cancel always available. Where the provider accepts a cancel, the register cancels the payment there, so the customer cannot complete a payment the cashier has abandoned. A payment the provider will not cancel, such as a Mollie point-of-sale payment, is never sent a cancel. The overlay then shows "This payment cannot be stopped from the register. Cancel it on
, or wait for it to expire." and the register keeps watching the payment for up to 15 minutes. Stop watching leaves the payment open at the provider and lists it under Reports → Terminal Payments. - Taking too long: after a threshold the overlay suggests the terminal may be unavailable and shows the fallback actions.
- Declined / cancelled / expired: the reason, with Retry as the primary action. The cart is untouched: retry, switch to another paired terminal for this sale, or back out and pick a different tender.
- Test mode: when the provider is configured with a test key, a visible test-mode badge shows on the payment panel, so a test key does not go unnoticed at checkout.
Where It's Configured
- In the app: Settings → Card Payments, in the Payments section of the Settings menu. Switch the processing mode from Manual to the provider, enter the provider credentials, and pair a terminal. The provider pages walk through it. The terminal paired here is the register's default; Switch on the checkout's payment panel takes another paired terminal for the sale at hand only, and the next sale is back on the default.
- In Magento (PRO): the same credentials and method mapping live at Stores → Configuration → Hyvä POS → Payments → Card Payments, under Mollie, PAY. and Adyen, with per-location overrides. Every register applies them as they arrive and lists the changes under Applied by Magento. A locked field shows a lock and a Magento badge on the device and cannot be edited there; an unlocked field can be edited on the device, and the edit holds until Magento's value next changes. See global settings.
- On PRO, re-pairing to a different terminal is gated by the hardware-configuration permission (managers and up by default); taking payments through the paired terminal is not.
Failure Handling
Every provider integration handles connection problems the same way:
- Idempotent payments: every payment carries a unique key, so a network drop during creation cannot double-charge; retrying returns the same payment. A double tap on the pay button is rejected; only one payment can be in flight. A sale whose earlier card payment is still open or unsettled is not charged again: checkout shows "An earlier card payment for this sale is not settled yet (reference …). Check that payment under Terminal Payments in Reports before you charge again."
- Recovery over failure: on provider server errors the app retries with the same key and, if needed, matches the payment among recent transactions rather than showing a false failure.
- A bounded wait, and the provider has the last word: the app polls the payment for up to 60 seconds. When the cashier taps Cancel, or the wait runs out, the register cancels at the provider where the provider accepts a cancel, and then asks it what became of the payment. A payment the customer completed in that moment is booked as a sale; a cancellation the provider confirms is a cancellation; anything the provider does not confirm is shown as Payment not confirmed, with a Check payment button and no retry, so the customer is never charged twice for one sale. A payment the provider will not cancel is not sent one: the register keeps reading it for up to 15 minutes, until the terminal or the payment's own expiry ends it, and a payment still open after that is listed under Reports → Terminal Payments. In test mode no terminal exists and no money moves, so Cancel closes a payment the provider will not cancel on the spot; the test payment ends on the provider's test page or when it expires.
- Failure is explicit: a declined, cancelled or expired payment shows the reason on the overlay with Retry as the primary action; the cart is untouched, so the cashier retries, switches to another terminal mid-payment, or picks a different tender.
- If the app dies mid-payment, or the answer never arrives: every attempt is written on the device before the provider is asked, with the reference the provider received. Attempts without a confirmed outcome are listed under Reports → Terminal Payments, also after a relaunch. Check reads each back through the provider that took it; a confirmed cancellation or decline settles it; money the provider confirms with no order behind it can be refunded to the card from there. An attempt the provider never responded to carries no payment id to read: Enter payment id links it to the payment found in the provider's dashboard. Nothing was charged closes an attempt after the cashier has checked at the provider that it took no money, or that what it took was refunded there; nothing is booked and no sale is saved. On PRO, refunding a payment with no order behind it needs the Issue Refunds permission or a manager's approval, and Nothing was charged waits while a refund of that payment is open.
- Manual fallback: if the terminal stays unreachable, Process Manually lets the cashier, after an explicit confirmation, settle the payment as a manual card entry. The cart is kept.
What Ends Up on the Receipt and the Order
The provider returns the full card metadata on confirmation, and the app stores it with the sale:
- On the terminal slip: card brand and masked number, cardholder where the scheme provides it, chip/contactless indicator, authorization code, acquirer reference (ARN), EMV application details, entry and verification mode, and the authorization timestamp. Customer and merchant copies have their own auto-print switches (per device, or pushed from Magento on PRO).
- Because the metadata is stored with the sale, slips can be reprinted later, offline included, from the receipts list.
- The Magento order books under the provider's payment method (see the provider page for the mapping) with the POS payment details in the order comments, and the sale keeps a direct link to the payment in the provider's dashboard for reconciliation.
Payment First, Order Second
The order is placed only after the provider confirms the payment. The reverse case is covered too:
- Before the terminal is asked for money, the register checks the sale and writes a snapshot of the basket to the device. When the payment goes through and the sale cannot be saved, the register shows Payment taken, sale not saved. Save paid sale saves the basket the customer paid for without charging again; Refund to the card returns the money instead. Until one of them is done, sales pause on the device ("Sales paused. A paid sale still needs to be saved."), also after a relaunch. From app 0.6.0, a payment the provider did not confirm holds only its own sale; see when a card payment has no answer. See also when a card payment goes wrong.
- On PRO, a network drop after the payment queues the finished order; the receipt prints from the local record and the queue syncs on reconnect.
- Every sale carries a unique id, so an order-placement retry returns the existing Magento order instead of creating a duplicate. See how orders are placed.
The payment itself always needs a route to the provider: terminal payments are payments over the internet, so a fully offline counter takes cash or falls back to the manual reference flow while the connection is down.
When a Card Payment Has No Answer
From app 0.6.0 the register keeps selling while a card payment has no answer. Only the sale the payment was taken for waits.
The cart and the checkout of that sale show Card payment not confirmed yet with the amount and the terminal, and one button, Resolve now. Charge stays unavailable for that sale until the payment is settled. Resolve now asks what happened with the card payment:
- The customer paid: the terminal showed it was approved. The register saves the sale, with your name on the receipt.
- The customer did not pay: the terminal declined, showed nothing, or the customer stopped. The register closes the payment, and you take the money another way. If the provider took the money after all, the register shows it under Reports → Terminal Payments with a refund.
- Not sure: the register asks the provider. A payment found paid saves the sale. A payment declined or canceled frees the sale for another payment. When the provider cannot say yet, the question offers Take payment another way, Not sure again and Decide later.
- Decide later: the question waits. You go on with the next customer.
A payment that waits is counted in the register header as payments to settle, for example "2 payments to settle". Tap the count to answer. The same payments are listed under Reports → Terminal Payments.
Who May Answer
On PRO, the Settle Unconfirmed Card Payments permission of the staff member's role decides who may answer (module 1.7.0).
- Staff whose role has it answer directly.
- Staff whose role lacks it can tap Not sure and Decide later. For the other answers, a colleague whose role settles payments answers with their passcode.
A device that signs nobody in allows every answer. On a module before 1.7.0 every staff member may answer.
The Terminal Payments Report
Reports → Terminal Payments lists every card payment this device took for ninety days, newest first. Each row shows the amount, the terminal, what became of the payment, and the receipt it paid for, with a link to the receipt and the order. An Adyen payment is named by its PSP reference once Adyen has answered paid. Two filters choose the rows:
- Needs attention: payments that are not confirmed, that disagree with the provider, that were paid without a receipt, or that are not compared yet.
- All: every payment of the ninety days.
The Comparison With the Provider
In the background, the register compares every card payment with the provider. A row shows "Not compared yet" until that has happened. When the comparison finds a difference, the row says what to do, and Reports → Sync Issues lists it as well:
- A payment taken with no sale: the row offers Save the sale while the sale can still be saved, and Refund the card payment otherwise.
- A customer who paid twice: the row names both payments and offers the refund of one of them.
- A payment said paid that the provider never took: Close without payment closes it. A staff member with the Manager or Admin role closes it, or approves it with their passcode.
The register checks the offer again before it saves a sale or refunds a card.
A Refund the Provider Refuses
When the provider refuses the first request to refund such a payment, the payment is free again. The row offers Check payment and Refunded outside this device again. The register runs one refund of a payment at a time.
Refunded Outside This Device
Refunded outside this device closes a payment whose money went back to the card in the provider's own dashboard. It is offered for an Adyen payment without an order, which the register does not refund to the card, and for a payment whose refund the provider refused.
- Refund the payment in the provider's dashboard.
- Tap Refunded outside this device.
- The register asks "Was the full … refunded?". Yes, the full amount closes the payment. Only part of it closes nothing.
The register keeps who confirmed it, when, the payment reference and the amount. It sends nothing to the provider or to Magento. On PRO this needs the Settle Unconfirmed Card Payments permission or a colleague's passcode.
Set Aside
Set aside takes a payment out of the register header's count while someone looks into it. The row then reads "Set aside by … on …. It no longer shows in the register header." Show in header again brings it back. On PRO, setting a payment aside needs the Settle Unconfirmed Card Payments permission or a colleague's passcode.
The header counts a difference the comparison found only for staff whose role settles payments. A payment set aside is not counted for anyone.
Card Refund Outcomes
From app 0.6.0 a card refund through the provider ends in one of four outcomes. They are the same for Mollie, PAY. and Adyen.
| Outcome | What the register shows | What follows |
|---|---|---|
| Confirmed | Refund Processed | The credit memo is booked and the money is on its way to the card. |
| Submitted | Refund submitted | The provider took the refund and has not finished it. The credit memo is booked once. |
| Unknown | "Card refund of … has no answer from the card provider" under Reports → Sync Issues | The money may or may not be on its way. |
| Failed | The provider's reason | Nothing is booked when the provider refuses at once. |
A Submitted Refund
An order with a submitted card refund carries a card: "Card refund of … submitted", when the register last checked it, and Check again. The register also asks the provider when the app starts, when it comes to the front and when you open the order. A refund is never closed because it is old.
- Mollie: a refund Mollie has not finished reads submitted until Mollie reports it refunded.
- PAY.: a refund reads Refund submitted and stays that way, because PAY. gives no confirmation of a single refund. The order carries no card for it.
- Adyen: see Adyen refunds. Without the refund webhook the refund reads Refund submitted as soon as Adyen accepts it, and the order carries no card.
An Unknown Refund
The register never sends a card refund a second time on its own reading. When you start the refund again, the register first asks "Did the card refund go through?" with It went through, It did not go through and Decide later. Nothing is paid out before that is answered.
A Refund That Fails Later
A refund the provider fails or cancels after it took it is one row under Reports → Sync Issues: "Card refund of … was not paid out", with the provider's reason. The credit memo stays, and nothing is refunded again. Pay the customer another way, or refund the payment at the provider, then mark the row resolved. A refund Mollie holds until the account's balance covers it reads "Card refund of … is waiting at the card provider" and closes by itself when Mollie pays it.
A Refund Accepted and Not Recorded
When the app stops after the provider accepted a refund and before its credit memo was booked, the order and Reports → Sync Issues show "Card refund of … accepted by …, not recorded yet" with Finish recording refund. Finishing it books the credit memo from the refund's own record and sends nothing to the provider.
Refunds From a Credit Memo in Magento (PRO)
With module 1.7.0, a credit memo made in the Magento admin refunds the card part of a register sale at the provider. This covers Mollie and PAY. It applies to a register sale whose order books under an offline payment method with a card tender, such as a split sale paid part cash and part card. A sale that books under the provider's own Magento method is refunded by that provider's Magento module, as before. An Adyen card tender is not refunded from a credit memo: refund it at the register or in the Adyen Customer Area.
The Tenders on the Order
The admin order view of a register sale lists its tenders under the payment information: Method, Amount, Payment and Dashboard, with a link to the payment in the provider's dashboard. The tenders come from the sale's receipt, or from the order's payment record. From app 0.6.0 the receipt carries the card tender's provider and payment id.
Making the Credit Memo
- Open the order and start a credit memo.
- Above the totals, the Tenders section lists the sale's tenders with Refund the card tender through Mollie (or PAY.). The box is ticked.
- Leave it ticked to refund the card. Clear it to hand all of the refund back at the counter.
- Save the credit memo.
The card tender is refunded up to the memo total, less any part refunded to store credit, and up to what is left of the card tender. The rest is a cash refund at the counter. The memo comment and the admin message name that amount. One card tender is refunded per memo. On a sale with more than one, the form says which one is refunded at the counter.
After the save, Magento shows a message for the outcome:
- Refunded: the provider reports the refund as made.
- Submitted: the provider took the refund and has not finished it. Every PAY. refund is submitted, because PAY. reports no status for a refund.
- Refused or no answer: a warning. The credit memo stays.
The Card Tender Refund on the Credit Memo
The credit memo view shows a Card Tender Refund block with the status, the amount, the provider's refund ID and the provider's answer. It offers these actions:
- Retry Card Refund: for a refund the provider refused, one that never reached the provider, and a Mollie refund that got no answer. The retry first looks for a refund Mollie already made for the memo.
- Check Outcome: for a submitted Mollie refund. It reads the refund at Mollie and sends nothing.
- Record Outcome: for a PAY. refund that got no answer, and for a submitted refund of either provider. Look the refund up in the provider's dashboard and record what it shows: Refunded at Mollie (or PAY.) with the reference and the amount, Not refunded, or Still uncertain, with a note. Recording sends nothing to the provider. The block then shows "Recorded by … on …".
The first card refund is part of the credit memo and needs only the permission that creates credit memos. Retry Card Refund, Check Outcome and Record Outcome need the admin role resource POS → Retry and Record Card Tender Refunds (System → Permissions → User Roles).
Credit Memos Through the REST API
POST /V1/order/:orderId/refund and POST /V1/invoice/:invoiceId/refund refund the card tender only when the request asks for it with an extension attribute. A connector that books credit memos moves no money. See the RMA API.
No Integrated Terminal?
The manual reference flow covers any terminal from any provider, today: type the amount into the terminal, and record the payment in the app with the terminal's reference number.
Refunds go back to the card on both tiers
A refund of a terminal-paid sale is returned to the customer's card on both tiers. The app refunds through the terminal provider directly when the sale carries a terminal payment; otherwise the credit memo it creates in Magento is an online refund, and the provider's Magento module (Mollie's, for example) returns the payment automatically. Only sales recorded with the manual reference flow have no payment to refund against; those are reversed on the standalone terminal by hand.