Developer Guide
  • Getting Started
    • Why NFTpay
  • NFTpay Services
    • Simple NFT Payments
    • PureCharge API
    • Marketplaces
    • Web3 Gaming
    • Minting Platforms
    • USDC, USDT and BUSD Support
    • Wallet API
    • Whitelists and Allowlists
    • Mint to Destination
    • Conversion Analytics
    • Marketing Service
    • NFT Minting Services
    • Thirdweb and Tuple Support
    • Integrating Thirdweb with NFTpay
    • Embeddable NFT Collection Widget
    • Individual Wallet
  • Integration Docs
    • ⚡How it works
    • ⚡QuickStart
    • ⚡Adding your project
    • ⚡The Sandbox environment
    • ⚡The live environment
    • ⚡Changing the price
    • ⚡Checking sales
    • ⚡Adding NFTpay to your site
    • ⚡Example Mint Function
    • ⚡Locking email
    • ⚡API Check
    • ⚡Automated Collection Deployment
  • FAQ
Powered by GitBook
On this page
  1. NFTpay Services

Integrating Thirdweb with NFTpay

Use the following workflow to integrate Thirdweb contracts with NFTpay

PreviousThirdweb and Tuple SupportNextEmbeddable NFT Collection Widget

Last updated 1 year ago

To successfully integrate your Thirdweb contract, there are some steps you'll need to follow first.

Step 1: Go to third web, and claim one of your NFTs This will open metamask. Execute the transaction and then go to etherscan to find the transaction.

Click any claim transaction:

(Your transaction id will be different to the one above).

Step 3: Go to the tenderly.co website and view your transaction there. The link you'll need to use to do this is as follows. Replace the part in bold with your transaction id:

In tenderly, you can get the input of the function by clicking on Input & Output: Show

Step 4: Copy these inputs and then this is the URL parameters that you need for NFTPAY

{
  "_receiver": "0xf1381c0407bc7cfa8167675862ce980515758fc4", // not needed
  "_quantity": "1", // not needed
  "_currency": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
  "_pricePerToken": "300000000000000000",
  "_allowlistProof": {
    "proof": [
      "0x0000000000000000000000000000000000000000000000000000000000000000"
    ],
    "quantityLimitPerWallet": "0",
    "pricePerToken": "0",
    "currency": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee"
  },
  "_data": "0x00"
}

Modified, it becomes:

{
  "_currency": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
  "_pricePerToken": "300000000000000000",
  "_allowlistProof": {
    "proof": [
      "0x0000000000000000000000000000000000000000000000000000000000000000"
    ],
    "quantityLimitPerWallet": "0",
    "pricePerToken": "0",
    "currency": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee"
  },
  "_data": "0x00"
}

Step 5: Now take this JSON and put it into URL parameters as follows:

iframe/iframe_pay/75207e77-275a-4370-9275-22cb8ce9a36a
?_currency=0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE
&_pricePerToken=100000000000000000
&_allowlistProof={"currency":"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE","pricePerToken":"100000000000000000","proof":["0x0000000000000000000000000000000000000000000000000000000000000000"],"quantityLimitPerWallet":"115792089237316195423570985008687907853269984665640564039457584007913129639935"}
&_data=0x

If you are still experiencing issues with your parameters after following these steps, you MUST then provide us with:

1. a successful simulated tenderly transaction

AND

2. Your input JSON. Once we have this info we will be able to support you further!

Step 2: Copy the transaction id from the URL in etherscan (the part in bold):

https://etherscan.io/tx/0x5acb751d48ec865952ef3a4a182bf45f0e0d37562fbd7aba3d462ca075dc5a08
https://dashboard.tenderly.co/tx/mainnet/0x5acb751d48ec865952ef3a4a182bf45f0e0d37562fbd7aba3d462ca075dc5a08