Checkout
Payments
Create prices/payment intents to use in NoRamp’s one click checkout
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Create prices/payment intents to use in NoRamp’s one click checkout
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),
}
);
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))
