> For the complete documentation index, see [llms.txt](https://university.mindstudio.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://university.mindstudio.ai/building-ai-agents/blocks-reference/authorize-payment-block.md).

# Authorize Payment Block

Authorize a user to pay to use your AI agent.

Use the Authorize Payment block to earn money from your AI agents. The Authorize Payment block allows a user to authorize to pay you to use your AI agent. The user is presented with this block each time they run your AI agent. The user must have a MindStudio account.

Use immediately following a [User Input](/building-ai-agents/blocks-reference/user-input-block.md) block, and before your workflow begins any tasks.

See the [Earnings](https://app.mindstudio.ai/workspace/earnings) page to view pending transactions. Collect payouts using Stripe Connect.

## Configuration

### Amount&#x20;

Specify the per-unit amount the user must authorize payment. The user will be charged the full amount when a [Capture Payment](/building-ai-agents/blocks-reference/capture-payment-block.md) block captures payment.

### Quantity

Specify the number of units to authorize. By default is **1**.

{% hint style="info" %}
This setting may include variables.
{% endhint %}

### Statement Description

Describe the charge for the user.

### On Reject

Select the block to route to if the user rejects the payment authorization.

<div data-full-width="true"><figure><img src="https://3216313986-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpGwRPnWO6pBvzbcecqLI%2Fuploads%2FCajJNrr9JBHwAduZCPHC%2FScreenshot%202026-03-06%20at%2011.08.49%E2%80%AFAM.png?alt=media&amp;token=80132f43-3739-4ac8-9485-bad41c6f1981" alt=""><figcaption></figcaption></figure></div>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://university.mindstudio.ai/building-ai-agents/blocks-reference/authorize-payment-block.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
