# FOSSBilling

Integrate Bitcart into your self-hosted FOSSBilling instance easily!

{% embed url="<https://www.youtube.com/watch?v=t8YFOhTngQo>" %}

### Integration Requirements

This version requires the following:

* FOSSBilling instance
* Running Bitcart instance: [deployment guide](https://docs.bitcart.ai/deployment)

### Installing the Plugin

1. From your FOSSBilling panel, go to configuration > payment gateways -> New payment gateway
2. Upload Bitcart.php to the directory suggested by your deployment. [Download it](https://raw.githubusercontent.com/bitcart/bitcart-fossbilling/master/Bitcart/Bitcart.php) from this repository
3. Enable it by clicking on the button near Bitcart, fill in all settings and save.

### Plugin Configuration

After you have enabled the Bitcart plugin, the configuration steps are:

1. Enter your admin panel URL (for example, <https://admin.bitcart.ai>) without slashes. If deployed via configurator, you should use <https://bitcart.yourdomain.com/admin>
2. Enter your merchants API URL (for example, <https://api.bitcart.ai>) without slashes. If deployed via configurator, you should use <https://bitcart.yourdomain.com/api>
3. Enter your store ID (click on id field in Bitcart's admin panel to copy id)

Enjoy!


---

# 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.bitcart.ai/integrations/fossbilling.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.
