Socket
Socket
Sign inDemoInstall

square-web-sdk

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    square-web-sdk

An unofficial npm package for [Square Web Payments SDK](https://developer.squareup.com/reference/sdks/web/payments), with TypeScript types definition.


Version published
Weekly downloads
0
Maintainers
1
Created
Weekly downloads
 

Readme

Source

square-web-sdk

An unofficial npm package for Square Web Payments SDK, with TypeScript types definition.

Install

# via npm
npm i -S square-web-sdk

# via yarn
yarn add square-web-sdk

Usage

import { loadSquare } from 'square-web-sdk';

async function usageExample() {
    await loadSquare(false /* use sandbox */);

    const payments = Square.payments('applicationId', 'locationId');
    const card: Square.Card = await payments.card();
    await card.attach('#card');

    const token = await card.tokenize();
}

License

MIT

Keywords

FAQs

Last updated on 23 Jun 2021

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc