# Payment form with fixed amount

Amount of this payment cannot be changed by Client (but Merchant could provide options). Payment is considered paid when received amount is more of equal to payment amount, otherwise payment will be unsuccessful and will be awaiting for Merchant's confirmation.

**Content Type: x-www-form-urlencoded, form-data**

**Request type: POST**

**Endpoint:**&#x20;

```
https://app.0xprocessing.com/Payment
```

**Parameters:**&#x20;

<table><thead><tr><th width="185">Name</th><th width="451">Description</th><th>Type</th></tr></thead><tbody><tr><td>Amount</td><td>Payment amount in cryptocurrency. Optional parameter if <mark style="color:blue;">AmountUsd</mark> is passed</td><td>Double</td></tr><tr><td>AmountUSD</td><td>Payment amount in USD (equivalent). Optional parameter if <mark style="color:blue;">Amount</mark> is passed</td><td>Double</td></tr><tr><td>Currency (Required field)</td><td>Payment <a href="/pages/ftyScTyy3tWhVCjkYlFR#crypto-currencies">currency<br>Values</a></td><td>String</td></tr><tr><td>Email (Required field)</td><td>Client's e-mail</td><td>String</td></tr><tr><td>FirstName</td><td>Client's first name</td><td>String</td></tr><tr><td>LastName</td><td>Client's last name</td><td>String</td></tr><tr><td>ClientId (Required field)</td><td>Unique identifier of the user in the system from which the payment is made (e.g. client's id on your website)</td><td>String</td></tr><tr><td>MerchantId (Required field)</td><td>Unique Merchant ID in the system 0xProcessing</td><td>String</td></tr><tr><td>BillingID</td><td>Unique payment identifier in the system from which the payment is made</td><td>String</td></tr><tr><td>Test</td><td><p>It indicates whether the payment will be a test payment. This parameter is optional and should only be used for <a href="/pages/m3zeShTcg22RhSKfIeaq#test-callbacks">testing of callbacks.</a></p><p></p><p>In order to use this parameter, you have to be logged into the Merchant account. If authorization has been passed and the request is sent with Test=true, you will see three buttons on the payment form "Confirm payment", "Cancel payment","Insufficient", by clicking on which your WebhookUrl will receive corresponding callbacks. The total number of attempts sent is 30, and the interval between attempts is 15 seconds. Test payments are not displayed in your shop and are not counted</p></td><td>Boolean</td></tr><tr><td></td><td></td><td></td></tr><tr><td>ReturnUrl</td><td>If ReturnUrl = true, you will receive a payment form as a RedirectURL, which you can set as an iFrame on your side</td><td>Boolean</td></tr><tr><td>CancelUrl</td><td>The address to which the Cancel button will be redirected from the payment form. The address must support SSL</td><td>String</td></tr><tr><td>SuccessUrl</td><td>The address to which the Back to website button will be redirected from the payment form. The address must support SSL</td><td>String</td></tr><tr><td>AutoReturn</td><td>True if the user needs to be automatically redirected from the form to SuccessUrl after confirming the transactions in the blockchain</td><td>Boolean</td></tr></tbody></table>

**Example request:**

```html

        <form action="https://app.0xprocessing.com/Payment" method="post">
                <input type="hidden" name="test" value="false" />
                <input type="hidden" name="email" value="test@test.com" />
                <input type="hidden" name="name" value="name" />
                <input type="hidden" name="lastname" value="lastname" />
                <input type="hidden" name="amount" value="115" />
                <input type="hidden" name="currency" value="BTC" />
                <input type="hidden" name="MerchantId" value="Asv0232SSd" />
                <input type="hidden" name="ClientId" value="1000" />
                <input type="hidden" name="BillingId" value="13304" />
                <button type="submit">Send</button>
        </form>
                

```

**Reply**- in response to the above mandatory parameters, sent to **<https://app.0xprocessing.com/Payment>**, a payment form will be generated and shown to the payer to make the payment.

**An example of the response when** **ReturnUrl = true:**

```
   {
    "redirectUrl": "https://app.0xprocessing.com/Payment/Details/765ecbfa-13f5-4f49-83e9-ee468085c473",
    "id": 264239
   }                

```

The deposits report can be implemented by means of webhooks or by checking of payment status.

{% content-ref url="/pages/F6yWUooJ9PxeZEJxC2IT" %}
[Webhooks](/0xprocessing-api/webhooks.md)
{% endcontent-ref %}

{% content-ref url="/pages/noi71tQULMHhlhbiAI7P" %}
[Broken mention](broken://pages/noi71tQULMHhlhbiAI7P)
{% endcontent-ref %}


---

# 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.0xprocessing.com/0xprocessing-api/deposits/payment-form-with-fixed-amount.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.
