New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

cryptocloud

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cryptocloud

Wrapper for working with cryptocloud.plus

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

Cryptocloud.js

Wrapper for working with cryptocloud.plus

Installation

Install with npm:

npm install cryptocloud

Install with yarn:

yarn add cryptocloud

Usage

TypeScript

import { CryptoCloud, Currency, StatusInvoice } from 'cryptocloud'

const cryptoCloud = new CryptoCloud('apiKey', 'shopId')

/** Invoice creation */
const invoice = await cryptoCloud.createInvoice({
  amount: 100,
  orderId: 'myOrderId',
  currency: Currency.USD,
  email: 'customer@gmail.com'
})

/** Checking invoice status */
const status = await cryptoCloud.checkInvoiceStatus({ uuid: invoice.invoiceId })
if (status.statusInvoice === StatusInvoice.CREATED) {
  // ...
}

JavaScript

import { CryptoCloud } from 'cryptocloud'

const cryptoCloud = new CryptoCloud('apiKey', 'shopId')

/** Invoice creation */
const invoice = await cryptoCloud.createInvoice({
  amount: 100,
  orderId: 'myOrderId',
  currency: 'USD',
  email: 'customer@gmail.com'
})

/** Checking invoice status */
const status = await cryptoCloud.checkInvoiceStatus({ uuid: invoice.invoiceId })
if (status.statusInvoice === 'created') {
  // ...
}

Keywords

cryptocloud

FAQs

Package last updated on 05 Dec 2022

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