Socket
Socket
Sign inDemoInstall

spreedly

Package Overview
Dependencies
2
Maintainers
2
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    spreedly

spreedly api client


Version published
Weekly downloads
170
increased by53.15%
Maintainers
2
Install size
7.31 kB
Created
Weekly downloads
 

Readme

Source

Spreedly API Client

Simple typescript/javascript client for the spreedly API

import Client from 'spreedly';

const client = new Client(environment, token);

const GATEWAY_ID = '123';

const { token } = await client.createCreditCard(email, {
    fullName,
    number,
    month,
    year,
    verificationValue,
}, { userId: '1' });

await client.retainCreditCard(token);
await client.purchase(GATEWAY_ID, { amount: 100, currencyCode: 'USD', paymentMethodToken: token });

Keywords

FAQs

Last updated on 24 Feb 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