
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
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
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
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.

Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.

Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.