
Security News
CISA Kills Off RSS Feeds for KEVs and Cyber Alerts
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
node-coinbase-commerce
Advanced tools
Node.js connector for the Coinbase Commerce API with Typescript.
npm install node-coinbase-commerce
Refer to the examples folder for implementation demos.
import { CoinbaseCommerceClient } from "node-coinbase-commerce";
export const client = new CoinbaseCommerceClient(API_KEY);
const charges = await client.listCharges();
const checkout = await client.createCharge({
name: "Product name",
description: "Product description",
pricing_type: "fixed_price",
local_price: {
amount: 100,
currency: "USDT", // BTC, ETH, USDT
},
metadata: {
customer_id: "Customer id",
customer_name: "Customer name",
},
redirect_url: "http://example.com/redirect_url",
cancel_url: "http://example.com/cancel_url",
});
const charge = await client.showCharge({
charge_code_or_charge_id: "XXX",
});
const charge = await client.cancelCharge({
charge_code_or_charge_id: "XXX",
});
const charge = await client.resolveCharge({
charge_code_or_charge_id: "XXX",
});
const checkouts = await client.listCheckouts();
const checkout = await client.createCheckout({
name: "Product name",
description: "Product description",
requested_info: ["name", "email", "address", "phone"],
pricing_type: "fixed_price",
local_price: {
amount: 100,
currency: "USDT", // BTC, ETH, USDT
},
});
const checkout = await client.showCheckout({
checkout_id: "XXX",
});
const checkout = await client.updateCheckout({
checkout_id: "XXX",
name: "Product name",
description: "Product description",
requested_info: ["name", "email", "address", "phone"],
pricing_type: "fixed_price",
local_price: {
amount: 100,
currency: "USDT", // BTC, ETH, USDT
},
});
await client.deleteCheckout({
checkout_id: "XXX",
});
const invoices = await client.listInvoices();
const invoice = await client.createInvoice({
business_name: "XXX",
customer_email: "xxx@xxx.xxx", // has to be email
customer_name: "XXX",
memo: "XXX",
local_price: {
amount: 100,
currency: "USDT", // BTC, ETH, USDT
};
})
const invoice = await client.showInvoice({
invoice_code_or_invoice_id: "XXX",
});
const invoice = await client.voidInvoice({
invoice_code_or_invoice_id: "XXX",
});
const invoice = await client.resolveInvoice({
invoice_code_or_invoice_id: "XXX",
});
const events = await client.listEvents();
const invoice = await client.showEvent({
event_id: "XXX", // uuidv4
});
const { isVerified, error, typedBody } = verifyWebhook(
req.body,
req.headers["x-cc-webhook-signature"],
WEBHOOK_SHARED_SECRET,
);
FAQs
Node Coinbase Commerce API client
The npm package node-coinbase-commerce receives a total of 2 weekly downloads. As such, node-coinbase-commerce popularity was classified as not popular.
We found that node-coinbase-commerce demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.