Create a Multiple Uses Price

Create a Price in NoRamp’s dashboard to price your NFT sale and charge buyers credit cards for the selected amount.

In the sidebar on the dashboard click on Prices

After clicking on Create you’ll see a form to Create Price.

Fill out the form with the required information:

Select your Trigger action created in the previous step, the preferred currency, the amount in that currency you would like to charge, select Multiple uses, and finally input the parameters used in your smart contract function.

After creating a new Price you will see it created in your dashboard.

Create a Single Use Price Through the API

Create a Price in NoRamp’s dashboard to price your NFT sale and charge buyer’s credit cards for the selected amount.

If your NFT sale has different prices for each individual NFT sale or you are a marketplace we recommend using the API to create your prices.

Here is an example of how to Create a Price using the NoRamp API:

Backend Code

Node.js Code

const data = {
  currency: "usd",
  trigger_id: proccess.env.NORAMP_TRIGGER_ID,
  trigger_data: {
    params_data: [req.query.address],
  },
  amount: 5,
};

const response = await fetch(
  `https://api.noramp.io/prices/${process.env.NORAMP_APP_ID}`,
  {
    method: "POST",
    headers: {
      "content-type": "application/json",
      authorization: `Bearer ${process.env.NORAMP_API_KEY}`,
      "noramp-networktype": "testnet", // Remove this line for mainnet
    },
    body: JSON.stringify(data),
  }
);

Python Code

import os
import json
import requests

data = {
    "currency": "usd",
    "trigger_id": os.environ["NORAMP_TRIGGER_ID"],
    "trigger_data": {
        "params_data": [req_query_address],
    },
    "amount": 5,
}

headers = {
    "content-type": "application/json",
    "authorization": f"Bearer {os.environ['NORAMP_API_KEY']}",
    "noramp-networktype": "testnet",  # Remove this line for mainnet
}

url = f"https://api.noramp.io/prices/{os.environ['NORAMP_APP_ID']}"

response = requests.post(url, headers=headers, data=json.dumps(data))