Skip to main content
This release is 1 version behind 1.2.3 — the latest version of @shnoice/square. Jump to latest

Built and signed on GitHub Actions

This packages includes methods that interact with the Square API

This package works with Node.js, DenoIt is unknown whether this package works with Cloudflare Workers, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score
100%
Published
3 hours ago (1.2.2)

Square Deno

Package to interact with the Square API using Deno.

Usage

import { Square } from "@shnoice/square";

const sq = new Square(accessToken);

How to create account and generate API token

Payments

Source Documentation

The Payments API lets developers take and manage payments.

Applications need the following input to take a payment:

  • The amount to charge.
  • The payment recipient. The payment goes to the account identified by the Authorization header in the API request.
  • The payment source. The source can be a payment token or card on file.

You can generate a payment token using the Web Payments SDK and the In-App Payments SDK. For working code examples, see Square Connect API Examples.

A card on file is a credit card, debit card, or gift card that is associated with a customer. You can create a customer and add a card on file using Square APIs, the Square Seller Dashboard, or the Square Point of Sale application.

Built and signed on
GitHub Actions
View transparency log

Add Package

deno add jsr:@shnoice/square

Import symbol

import * as square from "@shnoice/square";

---- OR ----

Import directly with a jsr specifier

import * as square from "jsr:@shnoice/square";

Add Package

npx jsr add @shnoice/square

Import symbol

import * as square from "@shnoice/square";

Add Package

yarn dlx jsr add @shnoice/square

Import symbol

import * as square from "@shnoice/square";

Add Package

pnpm dlx jsr add @shnoice/square

Import symbol

import * as square from "@shnoice/square";

Add Package

bunx jsr add @shnoice/square

Import symbol

import * as square from "@shnoice/square";