# Service Configuration

When you have activated the CoinbarPay payment service for your account through the CoinbarPay Dashboard, it's essential to configure your shop's parameters to ensure a smooth and secure payment experience for your customers.&#x20;

{% hint style="info" %}
This topic will guide you through configuring your shop's <mark style="color:blue;">`WEB_URL_CALLBACK`</mark> and <mark style="color:blue;">`BE_URL_CALLBACK`</mark>, which are vital links in providing a seamless transaction experience with minimal disruptions.
{% endhint %}

### <mark style="color:blue;">`WEB_URL_CALLBACK`</mark>

The web\_url\_callback is the URL to which your customers will be redirected after they complete a payment through the CoinbarPay Web Gateway. This callback URL is typically a page on your website that displays a payment confirmation or a summary of the transaction.

To configure your <mark style="color:blue;">`WEB_URL_CALLBACK`</mark>:

1. Log in to your CoinbarPay Dashboard.
2. Navigate to the "Service Configuration" section.
3. Locate the "Web URL Callback" field and enter the desired URL, ensuring it is a valid and accessible link on your website.
4. Save your changes.

CoinbarPay will now automatically redirect your customers to this configured URL once a payment has been completed.

### <mark style="color:blue;">`BE_URL_CALLBACK`</mark>

The <mark style="color:blue;">`BE_URL_CALLBACK`</mark> is a server-side URL that CoinbarPay uses to send payment status updates and notifications securely.&#x20;

{% hint style="warning" %}

#### <mark style="color:orange;">Warning</mark>

This callback ensures your backend systems are informed in real-time about any updates or changes related to a payment transaction.
{% endhint %}

To configure your be\_url\_callback:

1. Log in to your CoinbarPay Dashboard.
2. Navigate to the "Service Configuration" section.
3. Locate the "Backend URL Callback" field and enter the desired URL, ensuring it is a valid endpoint on your server.
4. Save your changes.

Upon successful configuration, CoinbarPay will send secure HTTP requests to this URL whenever there are updates or changes in payment status.

It is essential to properly handle these requests on your server-side and implement necessary actions, such as updating your database records, sending confirmation emails, or generating reports.

{% hint style="warning" %}

#### <mark style="color:orange;">Warning</mark>

Ensure that both the <mark style="color:blue;">`WEB_URL_CALLBACK`</mark>and<mark style="color:blue;">`BE_URL_CALLBACK`</mark> are secure (HTTPS) and valids URLs, owned by You or Your Company, to avoid exposing sensitive customer or transaction data.&#x20;
{% endhint %}


---

# 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.coinbar.io/api-web-integration/service-configuration.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.
