# Accept ERC-20

With the ERC-20 app, powered by NiftyKit, you have the seamless ability to accept any ERC-20 token as a form of payment for your NFTs. Accept popular tokens such as USDC, ApeCoin, or [your custom token](https://docs.niftykit.com/customize-your-experience/available-apps/accept-erc-20/custom-erc-20). Start accepting payments with ease!

{% embed url="<https://www.youtube.com/watch?v=QoTCGUiHkKo>" %}
Step-by-step guide on how to add ERC-20 coins; USDC, $PEPE, $BRETT, $DEGEN to your NFT Collection
{% endembed %}

Before starting your sale in your collection, you must install the ERC-20 app to your collection and choose which token you would like to accept for your drop.

{% hint style="info" %}
ERC-20 App is available to all networks.
{% endhint %}

## To activate and accept ERC-20 follow these steps:

1. Launch your collection by creating the smart contract using NiftyKit
2. [Go to your collection dashboard](https://app.niftykit.com/dashboard?tab=collections)
3. Navigate to the app tab
4. **Click on \[Add] in ERC-20 to install.**

<figure><img src="https://3542085034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyrUuRLqblqKRfJtuslV7%2Fuploads%2FpehNsls6zbRpWdfzhrsR%2Fimage.png?alt=media&#x26;token=bfb22b3e-cdc0-48c6-8571-4975a07110c9" alt=""><figcaption><p>Download ERC-20 App to in your Collection Dashboard</p></figcaption></figure>

### Set up ERC-20 Payment for your Pre-sale or Public Sale

1. Once installed, a **Custom ERC-20** section will now be accessible in your collection overview. Click edit to get started. If you're planning to accept your custom ERC-20, [go here](https://docs.niftykit.com/customize-your-experience/available-apps/accept-erc-20/custom-erc-20).&#x20;

<figure><img src="https://3542085034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyrUuRLqblqKRfJtuslV7%2Fuploads%2FC7ctFyEOaUGq3AEG0Iml%2Fimage.png?alt=media&#x26;token=bafeeb8e-d1ff-4799-98b2-29d93cc118a0" alt=""><figcaption><p>ERC-20 Setting in Collection</p></figcaption></figure>

2. Choose an ERC-20 token to apply to your sales then click Update now. This will pop up your wallet and will ask you to confirm the transaction (with a minimal gas fee). &#x20;

<figure><img src="https://3542085034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyrUuRLqblqKRfJtuslV7%2Fuploads%2F1bUhp8OeWnfR0RTHjoIz%2Fimage.png?alt=media&#x26;token=794a2f0f-75ad-487c-90d6-8d51478f4664" alt=""><figcaption><p>Choose ERC-20 token</p></figcaption></figure>

{% hint style="info" %}
Only one token can be applied at a time per sale. You can also set up any custom token to accept here via [louper](https://louper.dev/).
{% endhint %}

3. You can now start your sale. Go to **\[Prepare Drop]**. and select Pre-sale or Public Sale.

<figure><img src="https://3542085034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyrUuRLqblqKRfJtuslV7%2Fuploads%2FpTR9XQpQecQ2USet6HOZ%2Fimage.png?alt=media&#x26;token=c297efbf-5040-4d38-bf1a-4bcbb3557be9" alt=""><figcaption><p>Start your Pre-sale or Public Sale with ERC-20 payment</p></figcaption></figure>

4. Input the price here. Once you start your sale. you can switch later on to accept Ethereum or other ERC-20 anytime by stopping and restarting your sale.

   <figure><img src="https://3542085034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyrUuRLqblqKRfJtuslV7%2Fuploads%2FGJyg6smrTlbwnTJL0lVU%2Fimage.png?alt=media&#x26;token=3562ffd7-920e-4e28-8ca3-a7d9dae8fc97" alt=""><figcaption><p>Set up your ERC-20 Sales</p></figcaption></figure>

5. Customize your drop page and start minting! [Go to your Collection Dashboard now](https://app.niftykit.com/login)

<figure><img src="https://3542085034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyrUuRLqblqKRfJtuslV7%2Fuploads%2FxgLi7kjVACaBPFe9ncBw%2Fimage.png?alt=media&#x26;token=18d86f6e-a172-48c7-92c6-1dca69cb5fc2" alt=""><figcaption><p>Start minting and accept ERC 20</p></figcaption></figure>

### **How Minting in ERC-20 Works**

On the mint page, the mint dialog will show the cost in ERC-20 and the fee in ETH. The first transaction processes the mint with the ERC-20 and there will be a separate transaction for the fees in ETH.

<figure><img src="https://3542085034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyrUuRLqblqKRfJtuslV7%2Fuploads%2F2Gx4s7duUytwysYjcZbK%2Fimage.png?alt=media&#x26;token=2b9b9071-2730-4284-ad24-7d4616186712" alt=""><figcaption></figcaption></figure>

### Withdrawing your ERC-20 sale

To withdraw your ERC-20 [earnings from your collection](https://app.niftykit.com/login), go to the overview tab and click on the drop-down as shown below:

<figure><img src="https://3542085034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyrUuRLqblqKRfJtuslV7%2Fuploads%2FDc1tnpmSJfge8ImR3cuV%2Fimage.png?alt=media&#x26;token=70bb2e76-b3d3-48ed-a040-cc8af7ec98a2" alt=""><figcaption><p>How to withdraw your ERC-20 sales</p></figcaption></figure>
