# What’s a payment gateway

<figure><img src="https://mhappy-stablecointhai.com/wp-content/uploads/2023/06/MHAPPY-SHOP.fw_-2.fw_.png" alt=""><figcaption></figcaption></figure>

A payment gateway is a technology used by merchants to accept debit or credit card purchases from customers. The term includes not only the physical card-reading devices found in brick-and-mortar retail stores but also the payment processing portals found in online stores. However, brick-and-mortar payment gateways in recent years have begun accepting phone-based payments using QR codes or Near Field Communication (NFC) technology.

### How Payment Gateways Work <a href="#mntl-sc-block_1-0-5" id="mntl-sc-block_1-0-5"></a>

\
The payment gateway is a key component of the electronic payment processing system, as it is the front-end technology responsible for sending customer information to the merchant acquiring bank, where the transaction is then processed.

Payment gateway technologies are always evolving to reflect new consumer tastes and technical capacities. In the past, terminals would accept credit cards using magnetic strips and required paper signatures from the customer. With the development of chip technologies, the signature phase could be removed in favor of a personal identification number (PIN) entered directly into the payment gateway hardware. Today, contactless purchases are also available, with many customers now using their phones as a payment device instead of plastic credit cards.

The architecture of a payment gateway will differ depending on whether it is an in-store gateway or an online payment portal. Online payment gateways will require application programming interfaces (APIs) that allow the website in question to communicate with the underlying payment processing network. In-store payment gateways will utilize a POS terminal that connects to the payment processing network electronically using either a phone line or an Internet connection.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mhappy-stablecointhai.com/knowledge/whats-a-payment-gateway.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
