> For the complete documentation index, see [llms.txt](https://docs.paymento.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.paymento.io/api-documention/additional-apis/manage-payment-settings.md).

# Manage Payment Settings

This set of APIs allows you to get or set your payment settings, including the callback URL and the HTTP method to be used when Paymento sends payment status updates to your server.

> This IPN (callback) URL only needs to be set once, It is a persistent store-level configuration. You do not need to set it every time you request a payment token. Once configured, it remains active for all subsequent payments created under that store.

### Set Payment Settings API

<mark style="color:green;">`POST`</mark> <https://api.paymento.io/v1/payment/settings> \<Description of the endpoint>

**Headers**

<table><thead><tr><th width="301">Name</th><th>Value</th></tr></thead><tbody><tr><td>Api-Key</td><td>Your Merchant API Key</td></tr><tr><td>Content Type</td><td><code>application/json</code></td></tr><tr><td>Accept</td><td><code>text/plain</code></td></tr></tbody></table>

**Body**

| Name                                | Type   | Nullable | Description                           |
| ----------------------------------- | ------ | -------- | ------------------------------------- |
| [`IPN_Url`](#user-content-fn-1)[^1] | string | false    |                                       |
| IPN\_`Method`                       | int    | false    | <p>HttpPost = 1</p><p>HttpPut = 2</p> |

**Response**

{% tabs %}
{% tab title="200" %}

```json
{
  "success": true,
  "message": "",
  "body": {
    "IPN_Url ": "https://yoursite.com/api/paymento/payment-status",
    "ipN_Method": 1
  }
}

```

{% endtab %}

{% tab title="400" %}

```json
{
  "error": "Invalid request"
}
```

{% endtab %}
{% endtabs %}

## Get Payment Settings API

<mark style="color:green;">`GET`</mark> <https://api.paymento.io/v1/payment/settings&#x20>;

**Headers**

| Name         | Value                 |
| ------------ | --------------------- |
| Api-Key      | Your Merchant API Key |
| Content Type | `application/json`    |
| Accept       | `text/plain`          |

**Response**

{% tabs %}
{% tab title="200" %}

```json
{
  "success": true,
  "message": "",
  "body": {
    "IPN_URL": "https://yoursite.com/api/paymento/payment-status",
    "IPN_Method": 1
  }
}
```

{% endtab %}

{% tab title="400" %}

```json
{
  "error": "Invalid request"
}
```

{% endtab %}
{% endtabs %}

[^1]:
