---
title: "TM Test Gateway form_post challenge page"
description: "Test businesses only."
canonical_url: "https://twominutebilling.com/help/developers/api-reference/webhooks/tm-test-gateway-form-post-challenge-page"
---
# TM Test Gateway form_post challenge page

> Test businesses only.

<api-operation method="POST" path="/v1/tmtest/form_post">
<template v-slot:docs="">

The buyer's browser posts a `next_action.formPost` here on a TM Test Gateway account with `buyer_auth_mode=form_post`. The challenge resolves (approved, or declined with `decision=decline`) and the answer is an HTML page that posts the buyer back to `return_url`. No API key: the `signature` field authenticates the request.

## Status codes

<table>
<thead>
  <tr>
    <th>
      Status
    </th>
    
    <th>
      Meaning
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        200
      </code>
    </td>
    
    <td>
      A page that posts the buyer back to <code>
        return_url
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        400
      </code>
    </td>
    
    <td>
      The signature is not correct
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        404
      </code>
    </td>
    
    <td>
      Only available in test mode
    </td>
  </tr>
</tbody>
</table>
</template>

<template v-slot:request="">

```bash [Request]
curl -X POST "$TMBILLING_URL/v1/tmtest/form_post"
```

</template>

<template v-slot:response="">
<code-group>

```text [200 OK]
Content-Type: text/html

<!doctype html>
<html>(the rendered document)</html>
```

```json [400 Bad Request]
{
  "error": {
    "type": "invalid_request_error",
    "message": "The signature is not correct"
  }
}
```

```json [404 Not Found]
{
  "error": {
    "type": "invalid_request_error",
    "message": "Only available in test mode"
  }
}
```

</code-group>
</template>
</api-operation>


## Sitemap

See the full [sitemap](https://twominutebilling.com/sitemap.md) for all pages.
