Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

coinbase-commerce

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coinbase-commerce

Node library for commerce.coinbase.com

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Coinbase Commerce

npm version wercker status

Node.js library for commerce.coinbase.com

Usage

Create a Commerce client:

const { CoinbaseCommerce } = require('coinbase-commerce')

let client = new CoinbaseCommerce({
  apiKey: '1234abcd-1234-abcd-1234-abcd1234abcd',
  version: '2018-03-22' // optional
})

Charges

List

let results = await client.charges.list()

Get

let result = await client.charges.get('66BEOV2A')

Create

let result = await client.charges.create(options)

Request

let result = await client.charges.request('post', '/resolve')

Checkouts

List

let results = await client.checkouts.list()

Get

let result = await client.checkouts.get('1234abcd-1234-abcd-1234-abcd1234abcd')

Create

let result = await client.checkouts.create({})

Update

let result = await client.checkouts.update('1234abcd-1234-abcd-1234-abcd1234abcd', updates)

Delete

let result = await client.checkouts.delete('1234abcd-1234-abcd-1234-abcd1234abcd')

Events

List

let results = await client.events.list()

Get

let result = await client.events.get('66BEOV2A')

Webhooks

Verify Signature

// `body` can be a String, Buffer or Object
let isVerified = client.verifyWebhookSignature(signature, body, sharedSecret)

Keywords

FAQs

Package last updated on 16 Jul 2018

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc