Tudásbázis / Knowledge base

Stripe fizetések → számla automatikusan Stripe payments → automatic invoices

Utolsó frissítés: Last updated:

Vevőid a Stripe-on fizetnek, a BillingHUNter a magyar jogszabályoknak és NAV-követelményeknek megfelelő számlát készít belőlük. Ez a cikk a beállítást, az ÁFA-szabályokat és a hibakezelést járja végig. Your customers pay via Stripe, and BillingHUNter turns each payment into a compliant invoice that meets Hungarian law and NAV requirements. This guide covers setup, VAT rules and error handling.

Vissza a tudásbázisra Back to knowledge base

Konfiguráció törlésekor a hozzá tartozó Stripe webhook-végpontot is töröljük. (Régebbi, a titkosított kulcstárolás bevezetése előtti konfigurációknál a végpont a Stripe felületén maradhat — azt a Stripe dashboardon tudod törölni; a Stripe a folyamatos hibák után amúgy is letiltja.)Deleting a configuration also deletes its Stripe webhook endpoint. (Configs created before encrypted key-storage may leave an orphaned endpoint — remove it on the Stripe dashboard; Stripe auto-disables it after sustained failures anyway.)

Hogyan működik? How does it work?

A Stripe a fizetési eseményeket egy úgynevezett webhookon küldi el a BillingHUNternek. Mi ellenőrizzük, hogy az üzenet valóban a Stripe-tól érkezett (aláírás-ellenőrzés), majd a megszokott számlázási folyamatunkkal számlát készítünk belőle. A számla ugyanúgy NAV-hoz kerül, ugyanúgy kap PDF-et és SHA3-512 lenyomatot, mintha te hoztad volna létre. Stripe sends payment events to BillingHUNter over a webhook. We verify that the message really came from Stripe (signature verification), then run it through our normal invoicing pipeline. The invoice is reported to NAV, gets a PDF and a SHA3-512 fingerprint exactly as if you had created it yourself.

  • Feldolgozott események: sikeres fizetés (payment_intent.succeeded), sikeres terhelés (charge.succeeded), befizetett Stripe-számla (invoice.paid) és teljesített Checkout-folyamat (checkout.session.completed). Events we process: successful payment (payment_intent.succeeded), successful charge (charge.succeeded), paid Stripe invoice (invoice.paid) and completed Checkout session (checkout.session.completed).
  • Duplikáció-ellenőrzés: a Stripe néha újraküldi ugyanazt az eseményt. Fizetésenként csak egy számla készül, az ismétléseket eldobjuk. Duplicate protection: Stripe sometimes re-delivers the same event. Only one invoice is created per payment, retries are ignored.
  • Storno / refund: a teljes visszatérítésből automatikusan sztornószámla készül. Részleges visszatérítés esetén a helyesbítő számlát te állítod ki — az esemény a „Sikertelen események" között jelenik meg. Refunds / storno: a full refund automatically produces a storno invoice. For a partial refund you issue the correction invoice yourself — the event appears under “Failed events”.

Beállítás lépésről lépésre Setup step by step

  1. Stripe API-kulcs beszerzése. A Stripe Dashboardon (Developers → API keys) másold ki a titkos kulcsot (sk_live_... vagy teszteléshez sk_test_...). Get your Stripe API key. In the Stripe Dashboard (Developers → API keys), copy your secret key (sk_live_..., or sk_test_... for testing).
  2. Konfiguráció létrehozása. a BillingHUNter Stripe oldalán válaszd a szervezetet, nevezd el az oldalt, és illeszd be a kulcsot. A kulccsal hozzuk létre a webhookot a Stripe-nál — a kulcsot titkosítva tároljuk, így a konfiguráció törlésekor a Stripe-végpontot is töröljük. Create a configuration. On the BillingHUNter Stripe page, pick your organisation, name the site, paste the key. We use the key to create the webhook at Stripe — the key is stored encrypted, so deleting the configuration also deletes the Stripe endpoint.
  3. Webhook automatikusan elkészül. Mi regisztráljuk a Stripe-nál a webhookot és elmentjük az aláírási titkot (titkosítva). Szerkesztéskor hagyd üresen a kulcsmezőt, ha nem akarod újra kiadni a webhookot. The webhook is created for you. We register the endpoint at Stripe and store the signing secret (encrypted). When editing, leave the key field empty unless you want to re-provision.
  4. Számla-beállítások. Válassz témát, számlaformát, előtagot és fizetési módot. Ezek lesznek a Stripe-fizetésekből készülő számlákon. Invoice settings. Pick a theme, invoice appearance, prefix and payment method. These apply to invoices generated from Stripe payments.

ÁFA-szabályok: ki a felelős? VAT rules: who is responsible?

A helyes beállítás a te felelősséged. A BillingHUNter nem találgat. Ha az ÁFA-kód vagy a vevő adatai hiányoznak, a fizetés a „Sikertelen események" közé kerül egyértelmű okkal, nem pedig rossz számlát állítunk ki. Getting these settings right is your responsibility. BillingHUNter never guesses. If a VAT code or mandatory buyer data is missing, the payment lands in “Failed events” with a clear reason instead of producing a wrong invoice.

  • Belföldi vevő (HU): a belföldi ÁFA-kódod (általában 27%). Domestic buyer (HU): your domestic VAT code (usually 27%).
  • EU-s cég: jellemzően közösségen belüli, fordított adózás (EUFAD37). A vevő EU-s adószámából döntjük el, hogy cég. EU company: typically intra-community reverse charge (EUFAD37). The buyer's EU VAT number marks them as a company.
  • EU-s magánszemély: itt dönt az OSS-regisztrációd. Ha NEM vagy OSS-ben regisztrálva, 10 000 EUR/év EU-s B2C forgalom alatt a belföldi (27%) kulcs a helyes, ezért a mező zárolt. Ha OSS-ben vagy, válaszd a „Stripe adóadataiból" opciót: a BillingHUNter az ÁFA-kulcsot a Stripe-eseményben szereplő adóösszegből számítja. Ehhez a Stripe oldalon adót kell számítani — Stripe Tax (fizetős bővítmény) vagy az áraidhoz/tételeidhez rendelt adókulcs (a Stripe ingyenes funkciója) egyaránt megfelel. EU private person: your OSS registration decides. If you are NOT OSS-registered, under €10,000/year of EU B2C turnover the domestic (27%) rate applies, so the cell is locked. If you are registered, choose “From the Stripe tax data”: BillingHUNter derives the VAT percentage from the tax amount in the Stripe event. That requires tax computed on the Stripe side — either Stripe Tax (a paid add-on) or tax rates attached to your prices/line items (a free Stripe feature).
  • Külföldi (EU-n kívüli) vevő: jellemzően határon kívüli teljesítés (HO). Non-EU buyer: typically outside-the-territory (HO).

Stripe-oldali adószámítás nélkül a „Stripe adóadataiból" opció nem működik, mert az esemény nem tartalmaz adóösszeget, így a fizetés a sikertelen események közé kerül egyértelmű okkal. Vagy gondoskodj Stripe-oldali adószámításról (Stripe Tax vagy tételes adókulcs), vagy válassz konkrét ÁFA-kódot. A levezetett százaléknak egyeznie kell egy BillingHUNter ÁFA-kódoddal — máskülönben szintén sikertelen esemény keletkezik. Without Stripe-side tax computation the “From the Stripe tax data” option cannot work because the event carries no tax amount, so the payment lands in failed events with a clear reason. Either arrange tax computation in Stripe (Stripe Tax or per-item tax rates), or pick a concrete VAT code. The derived percentage must also match one of your BillingHUNter VAT codes — otherwise the event fails the same way.

Devizanemek és MNB-árfolyam Currencies and the MNB exchange rate

Támogatott devizák: HUF, EUR, USD, GBP, CHF, CZK, PLN, RON. Más devizában érkező fizetésből nem készül számla, a sikertelen események között látod. Nem váltunk át és nem becsülünk árfolyamot. Supported currencies: HUF, EUR, USD, GBP, CHF, CZK, PLN, RON. Payments in other currencies are not invoiced. They appear under failed events. We never convert or estimate rates.

Devizás számlánál a NAV-nak kötelezően szüksége van a forintosított összegekre, ezért a jegybanki (MNB) árfolyamot használjuk a teljesítés napjára. A beállításban ezt külön jelölőnégyzettel kell elfogadnod; elfogadás nélkül devizás fizetésből nem állíthatunk ki törvényes számlát. For foreign-currency invoices NAV requires the HUF-converted amounts. For this we use the central bank (MNB) exchange rate for the date of performance. You must accept this with a dedicated checkbox in the settings; without it we cannot legally invoice foreign-currency payments.

Milyen vevőadat kell a számlához? What buyer data is required?

A számlához kötelező a vevő neve és címe (ország, város, irányítószám, utca). Ezeket a Stripe fizetés billing details mezőiből vesszük. Ha a Stripe oldaladon nincs kötelező adatbekérés beállítva, a fizetés sikertelen esemény lesz. Checkout/Payment Links esetén kapcsold be a „Billing address collection" és a vevő neve bekérését. Invoices require the buyer's name and address (country, city, postcode, street). We take these from the payment's billing details. If your Stripe integration does not collect them, the payment becomes a failed event. In Checkout/Payment Links, enable billing address collection and customer name.

  • Céges vevő: EU-s adószám (pl. DE123456789) a Stripe customer tax_ids mezőjéből jön. Ez jelzi, hogy fordított adózás kell. Company buyer: EU VAT number (e.g. DE123456789) from the Stripe customer's tax_ids. This marks them for reverse charge.
  • E-mail küldés: a számlát csak akkor küldjük el, ha a fizetéshez tartozik e-mail cím (receipt_email vagy customer e-mail). E-mail delivery: the invoice is only e-mailed if the payment has an e-mail address (receipt_email or customer e-mail).
  • Tételnév: a fizetés leírásából, a metadata.product mezőből vagy az általad megadott alapértelmezett tételnévből. Ha egyik sem található, sikertelen esemény lesz. Item name: from the payment description, the metadata.product field, or the default item name you set. If none is found, it becomes a failed event.

Sikertelen események Failed events

Minden ellenőrzött, de számlává nem alakítható eseményt tárolunk: Stripe-esemény azonosító, típus, fizetés azonosító, hibaok, időbélyeg. A Stripe oldalon a konfiguráció melletti „Sikertelen események" nézetben listázzuk őket. Így látod, ha vevői adat hiányzik, ismeretlen a devizanem, vagy egy eseményt nem dolgozunk fel. Every verified-but-unprocessable event is stored: Stripe event id, type, payment id, reason, timestamp. Use “Failed events” next to each configuration on the Stripe page. This is where you see missing buyer data, unsupported currencies, or event types we don't process.

A Stripe oldal „Fizetési link" kártyáján megadhatsz egy korlátozott Stripe API-kulcsot (rk_…). Ha bekapcsolod, a kiállított számlákra és díjbekérőkre fizetési link kerülhet — akár automatikusan a kiállításkor, akár utólag egy gombbal a számla műveletei közül. A link bekerül a PDF-be és a számlavevőnek küldött e-mailbe fizetés gombként is — továbbá a számlán lévő ellenőrző QR-kód által megnyitott nyilvános ellenőrző oldalon is megjelenik egy fizetés gomb. On the Stripe page's “Payment link” card you can provide a Stripe restricted API key (rk_…). Once enabled, a payment link can be attached to issued invoices and proformas — automatically at issue time, or later with a button in the invoice actions. The link lands in the PDF and as a pay button in the e-mail sent to the buyer — and a pay button also appears on the public verification page opened via the invoice's verification QR code.

  • Befizetéskövetés: a sikeres fizetést a dokumentumon befizetésként rögzítjük; a teljes összeg megérkezésekor a számla „fizetett" jelölést kap. Payment tracking: a successful payment is recorded as an instalment on the document; once fully covered, the invoice is marked as paid.
  • Kifizetett díjbekérő: a fizetési linken kiegyenlített díjbekérőt a rendszer automatikusan valódi számlává konvertálja — az a szokásos NAV-beküldésen és PDF-generáláson megy át. Paid proforma: a proforma paid via the link is automatically converted into a real invoice — it goes through the usual NAV reporting and PDF generation.
  • Visszatérítés: fizetési linkes fizetés visszatérítéséből nem készül automatikusan sztornó vagy helyesbítő számla — az esemény a „Sikertelen események" között jelenik meg, a bizonylatot manuálisan állítod ki. Refunds: refunding a payment-link payment does not auto-create a storno or correction — the event appears under “Failed events” and you issue the document manually.
  • Kikapcsolás: a link inaktiválható a számla műveleteiből — ez csak a további fizetést tiltja, a már megérkezett összeget nem érinti. Deactivation: a link can be deactivated from the invoice actions — this only blocks further payments and does not touch money already received.

Biztonság Security

  • Minden webhook-üzenetet a Stripe aláírási titkával (whsec) hitelesítünk HMAC-SHA256-gyel és időkorláttal, így hamis üzenet nem állíthat ki számlát. Every webhook message is authenticated with the Stripe signing secret (whsec) via HMAC-SHA256 plus a timestamp tolerance, so forged messages cannot create invoices.
  • A webhook-aláírási titkot és az integrációkhoz megadott API-kulcsokat (rk_… korlátozott kulcs ajánlott) titkosítva tároljuk — a végpontok és fizetési linkek kezeléséhez — és a felületen sosem jelennek meg teljesen. The webhook signing secret and the API keys you provide for the integrations (rk_… restricted key recommended) are stored encrypted — needed to manage the endpoints and payment links — and are never shown in full on the UI.
  • A Stripe-konfigurációkat csak a szervezet tulajdonosa vagy közreműködője kezelheti. Stripe configurations can only be managed by the organisation owner or a contributor.