# Set up credit card payment

Credit card payments are now enabled by default for ERC-721 contracts. You may set up this feature **after** deployment.

{% hint style="info" %}
Credit cards are supported on these **mainnets**: Arbitrum One, Base, BNB, Ethereum, Optimism, and Polygon.
{% endhint %}

As this feature is currently in beta, it's possible to encounter some issues. To ensure a smooth experience for your users, we recommend thoroughly testing the feature on a testnet like Sepolia before launching your collection on mainnet. It's always better to be prepared!

{% hint style="info" %}
You can use Crossmint to test and deploy your projects on these supported **testnets**: Arbitrum Sepolia, Base Sepolia, BNB Testnet, Ethereum Sepolia, Optimism Sepolia, and Polygon Amoy.
{% endhint %}

{% hint style="warning" %}
There are a few limitations to using this feature:

* Only available for public minting (credit card presale mints are currently not supported on HeyMint).&#x20;
* Only available for mint pages built on Launchpad. You can't use this feature with our embedded mint button.
* Affiliate links are not supported.
* You will need to create an account and collection on [Crossmint](https://www.crossmint.com/) and go through the KYC process to verify your identity and collection on Crossmint, which could take up to 2 business days.
  {% endhint %}

### Steps

1. Go to "Minting" page and click on "Customize page"<br>

   <figure><img src="https://3436148827-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgUBEZKVtA2DMYGTVBbl6%2Fuploads%2F0jpF9tg8480G4L1KErYw%2FScreenshot%202024-06-26%20at%205.49.32%E2%80%AFAM.png?alt=media&#x26;token=01fc5cf4-9871-4f3f-8dd1-388577704b2e" alt=""><figcaption><p>Click on "Customize page"</p></figcaption></figure>

2. Scroll down to the '**Credit card payments'** section and click the "Get started" button.<br>

   <figure><img src="https://3436148827-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgUBEZKVtA2DMYGTVBbl6%2Fuploads%2F8ePe9GUMPM24JtHM4zHm%2FScreenshot%202024-06-26%20at%205.57.31%E2%80%AFAM.png?alt=media&#x26;token=b3466587-f656-4b5b-bb38-463b761b07bc" alt=""><figcaption><p>Click the "Get started" button</p></figcaption></figure>

3. Click the **'Click here to begin'** button to start configuration.<br>

   <figure><img src="https://3436148827-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgUBEZKVtA2DMYGTVBbl6%2Fuploads%2FHKBz8YZEUXXNBisul7O9%2FScreenshot%202024-06-26%20at%206.01.08%E2%80%AFAM.png?alt=media&#x26;token=cb41821d-26e3-484c-af75-0c70b92f1a05" alt="" width="272"><figcaption></figcaption></figure>

4. Create a Crossmint account. \
   \
   Crossmint offers separate accounts for testing and live environments:

   * **Staging Account:** Use this for testing your collection on testnet networks (Goerli for Ethereum, Mumbai for Polygon). It's free and provides a safe space to experiment.
   * **Production Account:** Use this for deploying your collection on mainnet (live Ethereum or Polygon networks).

   **Important:**

   * **Testnet contract addresses only work with staging accounts.**
   * **Mainnet contract addresses only work with production accounts.**

   We highly recommend that you start by creating a staging account and thoroughly testing your contract's functionality on testnet before moving to a production account.\
   \
   ![](https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgUBEZKVtA2DMYGTVBbl6%2Fuploads%2FwcmEXlcaqYSYGO3C6ug2%2FScreen%20Shot%202023-03-18%20at%2011.09.38%20AM.png?alt=media\&token=64ba5197-5ec8-4ad3-a2cf-4909066d455c)​<br>

5. Go to '**Collections**' and click on '**New collection**'.<br>

   <figure><img src="https://3436148827-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgUBEZKVtA2DMYGTVBbl6%2Fuploads%2FGpGRhpvGCnknkUWw3NeZ%2FScreenshot%202024-06-26%20at%207.24.21%E2%80%AFAM.png?alt=media&#x26;token=896e47ff-932a-41af-b54a-d83380e4eea2" alt=""><figcaption></figcaption></figure>

6. Enter your collection information then click 'Nex&#x74;**'**<br>

   <figure><img src="https://3436148827-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgUBEZKVtA2DMYGTVBbl6%2Fuploads%2FQpDryBvqPPHV8N0q0R6n%2FScreenshot%202024-06-26%20at%206.14.14%E2%80%AFAM.png?alt=media&#x26;token=b4d07806-a003-4631-be62-fcc91dddb490" alt=""><figcaption><p>Enter your collection information</p></figcaption></figure>

7. Choose '**Import an existing contract**' then click 'Nex&#x74;**'**<br>

   <figure><img src="https://3436148827-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgUBEZKVtA2DMYGTVBbl6%2Fuploads%2FOUAyoJCTLctyEEgmNNYm%2FScreenshot%202024-06-26%20at%206.15.38%E2%80%AFAM.png?alt=media&#x26;token=b8b65c05-747a-4e96-86af-1dcc07f8ec1a" alt=""><figcaption><p>Choose '<strong>Import an existing contract</strong>'</p></figcaption></figure>

8. Choose the blockchain and '**Import my own contract**' for Contract provider.<br>

   <figure><img src="https://3436148827-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgUBEZKVtA2DMYGTVBbl6%2Fuploads%2FFL2jsmDwEWamSVOPWFbu%2FScreenshot%202024-06-26%20at%207.41.09%E2%80%AFAM.png?alt=media&#x26;token=599cfd3e-e02d-474f-8da6-878f68667e17" alt=""><figcaption><p>(Mainnet) Choose the blockchain then, '<strong>Import my own contract</strong>' for Contract provider.</p></figcaption></figure>

   <figure><img src="https://3436148827-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgUBEZKVtA2DMYGTVBbl6%2Fuploads%2F0FoflhKEUhuT7OozRMES%2FScreenshot%202024-06-26%20at%206.17.21%E2%80%AFAM.png?alt=media&#x26;token=52ba3734-0f82-42a4-a066-d3eeb60e3cd3" alt=""><figcaption><p>(Testnet) Choose the blockchain then, '<strong>Import my own contract</strong>' for Contract provider.<br></p></figcaption></figure>

9. Import your contract\
   \
   To find your contract address, return to HeyMint Launchpad minting page and look for the "Contract address" section and copy. Then, paste it into 'Token or Proxy Contract Address' field on Crossmint.<br>

   <figure><img src="https://3436148827-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgUBEZKVtA2DMYGTVBbl6%2Fuploads%2FuXMptP5cqv73uj0mYMpf%2FScreenshot%202024-06-26%20at%206.23.29%E2%80%AFAM.png?alt=media&#x26;token=73f367b6-e038-4763-a8a7-574a2b4441c0" alt=""><figcaption><p>Look for the "Contract address" section on HeyMint minting page and copy. Then, paste it into 'Token or Proxy Contract Address' field on Crossmint<br></p></figcaption></figure>

   <figure><img src="https://3436148827-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgUBEZKVtA2DMYGTVBbl6%2Fuploads%2FnkHygegZylKHrvt1SlXq%2FScreenshot%202024-06-26%20at%206.27.19%E2%80%AFAM.png?alt=media&#x26;token=ef8b636f-fdd2-4824-ac6d-ac105cd01c29" alt=""><figcaption><p>Copy contract address</p></figcaption></figure>

10. Copy the '**ABI**' from HeyMint minting page and replace the default '**ABI**' on Crossmint.<br>

    <figure><img src="https://3436148827-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgUBEZKVtA2DMYGTVBbl6%2Fuploads%2FcFnZYt4IfbiF7Pr38ocC%2FScreenshot%202024-06-26%20at%206.32.59%E2%80%AFAM.png?alt=media&#x26;token=283d765c-f71f-4e9b-a4b9-a7901b3559e2" alt=""><figcaption><p>Copy the '<strong>ABI</strong>' from HeyMint</p></figcaption></figure>

    <figure><img src="https://3436148827-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgUBEZKVtA2DMYGTVBbl6%2Fuploads%2FmCM8yWwTXqK9exb94VYV%2FScreenshot%202024-06-26%20at%206.35.57%E2%80%AFAM.png?alt=media&#x26;token=e6026a68-8119-4ac1-9afa-ea776ecd3f00" alt=""><figcaption><p>Replace the default '<strong>ABI</strong>' on Crossmint</p></figcaption></figure>

11. Make sure the '**Mint function**', '**Parameter for recipient address**', and '**Parameter for quantity of NFTs purchased**' match those in HeyMint Launchpad.<br>

    <figure><img src="https://3436148827-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgUBEZKVtA2DMYGTVBbl6%2Fuploads%2FLfb0Sk0bMx9ScQ9sUY5x%2FScreenshot%202024-06-26%20at%206.40.37%E2%80%AFAM.png?alt=media&#x26;token=25373ee5-3965-499b-8a42-35227cab425f" alt=""><figcaption><p>Fields to match<br></p></figcaption></figure>

    <figure><img src="https://3436148827-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgUBEZKVtA2DMYGTVBbl6%2Fuploads%2FGwXA5QdzhEYcTIKn8tVy%2FScreenshot%202024-06-26%20at%206.39.20%E2%80%AFAM.png?alt=media&#x26;token=d9002592-ca72-4f2b-b516-25cbd0e160f9" alt=""><figcaption><p>Match the fields</p></figcaption></figure>

12. Register your collection.<br>

    <figure><img src="https://3436148827-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgUBEZKVtA2DMYGTVBbl6%2Fuploads%2F2OopA3bGojAS5kOyMEYz%2FScreenshot%202024-06-26%20at%206.46.09%E2%80%AFAM.png?alt=media&#x26;token=17e9e0c0-859b-47a4-94b1-fdb37dd18b87" alt=""><figcaption><p>Register your collection</p></figcaption></figure>

13. Enable Crypto and Credit Card payments.<br>

    <figure><img src="https://3436148827-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgUBEZKVtA2DMYGTVBbl6%2Fuploads%2Fo0wCFjs4tQUjuIUFJabV%2FScreenshot%202024-06-26%20at%206.47.38%E2%80%AFAM.png?alt=media&#x26;token=722a7c88-3677-4217-8f35-d16a6c25aeb0" alt=""><figcaption><p>Enable Crypto and Credit Card payments</p></figcaption></figure>

14. Copy the Project ID and Collection ID from Crossmint, then go back and paste them into the appropriate fields on HeyMint Launchpad minting page. Then, click on '**Save**'.<br>

    <figure><img src="https://3436148827-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgUBEZKVtA2DMYGTVBbl6%2Fuploads%2FyU6YTj7mCmJ0xrRw7lBc%2FScreenshot%202024-06-26%20at%206.50.11%E2%80%AFAM.png?alt=media&#x26;token=f54eb5ba-e4b3-4d80-9e82-ad8071f0e17d" alt=""><figcaption><p>Copy the Project ID and Collection ID<br></p></figcaption></figure>

    <figure><img src="https://3436148827-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgUBEZKVtA2DMYGTVBbl6%2Fuploads%2F0R9vHqgAK366xTEezpbe%2FScreenshot%202024-06-26%20at%206.52.44%E2%80%AFAM.png?alt=media&#x26;token=cb1756eb-68f1-417a-8a42-51317e0d8063" alt=""><figcaption><p>Paste them into the appropriate fields on HeyMint Launchpad minting page</p></figcaption></figure>

15. Click '**Save changes**'<br>

    <figure><img src="https://3436148827-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgUBEZKVtA2DMYGTVBbl6%2Fuploads%2FxlC22bFNJbWAOIIm6iRB%2FScreenshot%202024-06-26%20at%206.55.08%E2%80%AFAM.png?alt=media&#x26;token=547cd59a-2260-41fc-a0d5-b52af016a722" alt=""><figcaption></figcaption></figure>

You may share this page -> ( [mint-using-a-credit-card](https://docs.launchpad.heymint.xyz/creators/manage-smart-contract/after-deployment/set-up-credit-card-payment/mint-using-a-credit-card "mention") ) with your collectors for steps on how to mint using a credit card.
