Vezi pagina în română

IT Glossary

What is a payment gateway?

The hosted payment page, secure fields or API through which a site takes the card — and the PCI DSS obligation each option brings.

6
sections
6
questions answered

A payment gateway is the technical component — a hosted payment page, secure fields or an API — through which a website or app captures card data, encrypts it and sends it for authorization, then receives the approved or declined response within seconds. How you integrate it decides which PCI DSS (version 4.0.1) self-assessment questionnaire the shop completes: a hosted page or iframe fields lead to SAQ A, your own form posting card data straight to the gateway usually leads to SAQ A-EP, and card numbers passing through your own server mean SAQ D. Even SAQ A is not "zero obligations": the annual attestation and external ASV scans remain.

The gateway is the technical part; the payment processor is the company that authorizes transactions and moves the money, and most providers in Romania sell both in one contract. Fees and the list of processors are on the page about the payment processor. Checked on 18 November 2026 against the PCI Security Standards Council documents.

Why it matters for your business

The card never reaches your server

With a hosted page or iframe fields the shop never receives the card number and stays at SAQ A; the annual attestation and ASV scans still apply.

Recurring payments without stored cards

The gateway keeps the card and gives you a token. With it you can bill subscriptions or offer "save my card" without holding the card number in your database.

Orders confirmed by the server

The gateway sends your server a notification (webhook) when the payment is complete. Mark the order paid only on that, not when the customer returns in the browser.

How a payment gateway works

A payment goes through five steps. First, the customer enters the card on the hosted page or in the fields the gateway supplies. Next, the gateway encrypts the data and swaps it for a token. Third, the issuing bank asks for strong customer authentication through 3-D Secure. Then the request travels through the acquiring bank and the card network to the issuer, which approves or declines. Finally, the gateway returns the result to the browser and sends your server a notification (webhook), the only one that confirms the order.

Settlement of the money and the fees belong to the processor, not the gateway.

Integration types and the PCI DSS questionnaire

Redirect to a hosted page: the customer pays on the provider's domain and your site never sees the card. This maps to SAQ A. External ASV scans and the annual attestation still apply, per the official PCI SSC guidance (FAQ 1604).

Hosted fields in an iframe (the Stripe Elements model): the form comes from the provider but sits on your page. Still SAQ A, with a condition added on 30 January 2025: the merchant confirms the page is not susceptible to attacks from scripts. You can show this by applying techniques such as requirements 6.4.3 and 11.6.1, or with written confirmation from the provider that its form, implemented as instructed, protects against such attacks (PCI SSC, FAQ 1588). Ask for the confirmation in writing and keep third-party scripts off the payment page.

Your own form posting data straight to the gateway (direct post or JavaScript that builds the form on your page): usually SAQ A-EP, because the site does not receive the card but can affect the security of the transaction.

Server-to-server API with the card number on your own server: SAQ D. Stripe's security guide cites more than 300 security controls for anyone handling card numbers. It suits only firms that build payment infrastructure.

The questionnaire that applies is confirmed by the acquiring bank or the processor, not chosen by the shop.

Want an estimate for your project?

Message us on WhatsApp. We reply the same working day, and the first 30-minute call is free.

Book a free call

Tokenization, 3-D Secure and webhooks

Tokenization: the gateway keeps the card while your site keeps a token, plus the card type, last four digits and expiry date, which stay outside PCI scope (Stripe security guide). Subscriptions and "save my card" are built on the token.

3-D Secure is the protocol through which banks apply strong customer authentication (SCA), required by the European PSD2 directive and detailed in Commission Delegated Regulation (EU) 2018/389. The issuer decides whether to grant an exemption; the shop cannot force one.

A webhook is the notification the gateway sends to your server. Mark the order paid only on it, verify its signature and serve the endpoint over TLS. The event carries no card data. The browser return URL alone is not proof of payment.

Testing in a sandbox before launch

Serious gateways offer a test environment with test keys and test cards; at Stripe, for example, card 4242 4242 4242 4242 simulates a successful payment (Stripe testing documentation). Try at least: approved card, declined card, a 3-D Secure challenge, a delayed or duplicated webhook (the order must not be doubled) and a refund.

Ask the developer or provider three things: which SAQ applies, who signs the script-attack confirmation and where webhooks land.

Frequently asked questions

What is a payment gateway?

A payment gateway is the technical component through which a website captures card data, encrypts it and sends it for authorization. It can be a hosted payment page, secure fields or an API. It receives the approved or declined response and returns it to the site.

What is a payment gateway in simple terms?

In simple terms it is the part of an online payment the customer sees and the developer integrates: the payment page or card fields. It is not the bank and not the processing contract, which are separate things, though one provider often sells all of them together.

What is the difference between a payment gateway and a payment processor?

The gateway is what the developer integrates into the site: the payment page, the fields or the API. The processor is the company you sign with, which authorizes transactions and pays out the money. Many providers sell both in one package.

If I use the processor's payment page, do I still have PCI DSS obligations?

Yes. You stay at SAQ A, with an annual attestation and external ASV scans. If the provider's form is embedded in your page through an iframe, you also confirm the page is not susceptible to script attacks, either with your own techniques or the provider's written confirmation.

Can I save the customer's card for subscriptions?

Yes, through a token. The gateway keeps the card, and your database holds only the token, card type, last four digits and expiry date. The full card number is never stored on your side. The first payment normally goes through 3-D Secure authentication.

How do I test the integration before launch?

Use the gateway's sandbox, with test keys and test cards. Check an approved payment, a declined one, the 3-D Secure challenge, a delayed or duplicated webhook and a refund. Switch to live keys only after every scenario works.