> For the complete documentation index, see [llms.txt](https://docs.toomuchmedia.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.toomuchmedia.com/getting-started/integrations/supported-billers/commercegate.md).

# CommerceGate

*Article Topics:* [*Billers*](https://docs.toomuchmedia.com/getting-started/common-topics/billers.md)

{% hint style="info" %}
**Please Note:** Please don't test your biller setup with NATS Commerce Gate's test account—it won't work correctly.
{% endhint %}

{% hint style="warning" %}
**Please Note:** NATS uses CommerceGate's new system, which uses a Merchant ID and Website ID in place of the Customer ID, Offer ID, and Package ID. If you have had CommerceGate sales within the last year, switch your account to CommerceGate's new system before upgrading NATS, and enter your new account information in NATS right after the upgrade.
{% endhint %}

### Set up on Commerce Gate's Website

[Register at CommerceGate.](http://www.commercegate.com/)

CommerceGate will provide you with a Merchant ID, a login and password, and a Website ID for each of your sites. If you were not provided with this information, please contact CommerceGate to receive it.

NATS sends its callback URLs to CommerceGate with each payment, so you don't need to set up callbacks for sales, rebills, refunds, or cancellations. Chargeback callbacks are the exception, and must be set up separately at CommerceGate. Ask CommerceGate to send chargeback callbacks to the following URL:

* Chargeback Callback URL: <https://linkdomain/signup/process\\_cgate.php>

Replace "linkdomain" in the above Callback URL example with your Link Domain.

## Set up Commerce Gate in NATS

### Billers Admin

To begin setting up Commerce Gate as a biller in NATS, go to the [Billers Admin](https://docs.toomuchmedia.com/nats-admin/billers.md). Scroll down to the "Biller" drop-down menu, select Commerce Gate, and click "Add."

{% hint style="info" %}
**Please Note:** If you don't see Commerce Gate as a biller in NATS, [put in a support ticket](https://clients.toomuchmedia.com/), as you may need an updated version of NATS.
{% endhint %}

When prompted, fill in the "Merchant ID", "login", and "password" fields under the "Account Info" section with the information provided to you by CommerceGate.

### Sites Admin

Next, go to the [Sites Admin](https://docs.toomuchmedia.com/nats-admin/sites.md), create or edit a tour, and scroll down to the "Biller Details" section. Enter your Commerce Gate Website ID in the CGATE Website-ID field.

Once you have done this, scroll down to the section labeled "Join Option for this Tour" and click the "Edit Option Details for this tour" icon that corresponds to the join option you wish to use. In the "Biller Code" section on the next page, select the "Currency" for the join option. If you accept crypto payments, you can also select a "processingCurrency" (BTC, LNBC, USDT, or TESTBTC).

NATS sends the join option's prices and membership lengths to CommerceGate with each payment, so you don't need to set up offers or packages in CommerceGate's system.

Once you have completed these steps, save your join option details. Commerce Gate will now be configured for basic use as a biller in NATS.

## Additional Notes

* CommerceGate supports credit card, Boleto, PIX, and crypto payments.
* When entering your Website ID, remove any leading zeros. So if your Website ID is *00300*, just enter *300* into NATS.
* If you do not collect usernames and passwords on your NATS pre-join forms, you need to tell Commerce Gate about this.
* If the domain name of your pre-join form is different then the public domain of the actual site, you need Commerce Gate to authorize your site domain.
