# Instant Payment Notification (IPN) \*

Instant Payment Notification (IPN) is a system used in e-commerce and online payment processing to notify merchants and customers of the status of a transaction in real time. When a payment is made, the payment processor sends an IPN message to the merchant's server with information about the transaction, such as the payment amount, the customer's information, and the status of the payment.

IPN allows merchants to automate the process of processing payments and managing orders, by providing real-time updates on the status of transactions. This enables merchants to more quickly fulfill orders and provide customers with a better experience.

The IPN system typically involves several components, including:

* Payment gateway: The payment gateway is the service that processes the payment and sends the IPN message to the merchant's server.
* Merchant's server: The merchant's server is the system that receives the IPN message from the payment gateway and processes it.
* Notification script: The notification script is a program that runs on the merchant's server and processes the IPN message, updating the order status and sending notifications to the customer.

When a payment is made, the payment gateway sends an IPN message to the merchant's server, which contains information about the transaction, such as the payment amount, the customer's information, and the status of the payment. The notification script then processes the IPN message and updates the order status, such as marking the order as paid and sending a notification email to the customer.

IPN can be used in a variety of e-commerce and online payment processing scenarios, including subscriptions, digital downloads, and one-time purchases. By providing real-time updates on the status of transactions, IPN enables merchants to more efficiently manage orders and provide better customer service.


---

# 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://jframework.gitbook.io/help/services/billing/payment/ipn.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.
