# Direct Payment
source: https://developer.mastercard.com/mastercard-gateway/documentation/integrations-types/direct-payment/index.md

The Direct Payment method lets you handle the entire payment process yourself. You can control your transactions, manage your payment pages, and collect payment details.

With this method, you first collect the payment details of a payer in your application or website, and then send the payment details directly to the Mastercard Gateway to process the transaction.
Warning: You must manage the security that is associated with the process. It increases the [PCI compliance](https://developer.mastercard.com/mastercard-gateway/documentation/getting-started/choosing-int-method/index.md#pci-compliance.md) scope and may increase costs.

## Supported methods and operations {#supported-methods-and-operations}

To implement a Direct Payment solution, you need basic knowledge of HTTP and the skills to formulate an HTTP request in your preferred server-side scripting language.

The Direct Payment integration method supports the following Operations:

| Payment methods |
|-----------------|
| All             |

| Operations |
|------------|
| All        |

## Prerequisites {#prerequisites}

Following are the details to learn about the Direct Payment integration method. For more information about:

* How transaction requests are formed and sent to the gateway, and the gateway responses are processed, see [Integration Steps](https://developer.mastercard.com/mastercard-gateway/documentation/integrations-types/direct-payment/integrate-direct-payment/index.md).
* How to use Direct Payment for merchant-initiated follow-up transactions to execute complex payment scenarios, see [Subsequent Operations](https://developer.mastercard.com/mastercard-gateway/documentation/integrations-types/direct-payment/integrate-direct-payment/subsequent-operations/index.md).
* Additional Direct Payment features, see [Features](https://developer.mastercard.com/mastercard-gateway/documentation/integrations-types/direct-payment/integrate-gateway-features/index.md).

## Benefits of Direct Payment {#benefits-of-direct-payment}

The Direct Payment offers:

* Control over the payment experience. It also provides flexibility to customize your payment solution.
* Integration with any application, website, call center, billing system, or Interactive Voice Response (IVR) system.
* Communicate directly with the gateway and then receive a real-time response to the API call. This is a synchronous connection where a payer does not leave your application, which means your session with the payer is not interrupted.
* Support for advanced gateway operations, such as captures, refunds, voids, and queries, where the payer is not directly involved.

## How the Direct Payment information flow works {#how-the-direct-payment-information-flow-works}

These are the stages of information flow for Direct Payment.
![](https://static.developer.mastercard.com/content/mastercard-gateway/uploads/direct-payment-info-flow@2xx.png)

1. The payer purchases and provides the card details directly to the application or website.
2. The application or website creates the transaction request and sends it using an HTTPS POST or PUT request to the gateway through an API call. Depending on your business needs, you can provide [additional fields](https://developer.mastercard.com/mastercard-gateway/documentation/gateway-features/data-and-reporting/supp-data/index.md) in the transaction request.
3. The gateway passes the transaction to the payment processor or acquirer for processing.
4. The payment processor or acquirer returns a response to the gateway.
5. The gateway generates a transaction response and passes it to the application or website, in response to your API call. The transaction response indicates whether the transaction was successful and includes other response data.

Based on the result of the transaction, the application or website displays a receipt, a confirmation, or an error page to the payer.
