# Simple Timelock payment

*In peer-to-peer transactions, FrogPay offers a solution with its Simple Timelock Payment mechanism. This feature allows a sender to transfer funds with the added security of being able to recall the payment within a predefined time frame.*

*When a user initiates a payment, the funds are not sent directly to the receiver. Instead, they are held in a Payment Smart Contract that acts as a secure intermediary. The sender has the peace of mind that, if necessary, they can reclaim their funds within the specified time period, thanks to a built-in timelock condition.*

*The payment process is as follows:*

1. **Initiate Payment**: The sender uses the Payment Smart Contract to send the money, which temporarily locks the funds with a time-based condition.
2. **Evaluate Condition**: The Payment Processor, an integral component of the contract, continuously monitors for the fulfillment of the condition. If the condition — be it a timelock or another predefined criterion — is met, the process moves to the next step.
3. **Send or Recall Payment**: Depending on the outcome of the evaluated condition, the Payment Smart Contract will either release the funds to the receiver or allow the sender to recall them. This decision is made without the need for a third party, ensuring a swift and autonomous resolution.
4. **Role of Dispute Management**: In the event of a dispute or if the condition is contested, the Dispute Management Smart Contract comes into play. It can pause the automatic process, allowing a Dispute Analyst to intervene and assess the situation, ensuring fair play and adherence to the terms of the transaction.

*This method ensures that transactions are efficient, user-friendly and also secure, granting users control over their funds until the transaction conditions are conclusively met. The Simple Timelock Payment is a testament to FrogPay's commitment to creating a trustless yet user-empowered financial environment.*

<figure><img src="/files/vB1zY1AdzS5kpzO1Jvls" alt=""><figcaption><p>Figure 5 Simple p2p Payment</p></figcaption></figure>


---

# 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://frogpay.gitbook.io/whitepaper/transaction-flow/simple-timelock-payment.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.
