0.0.16 • Published 3 years ago

spreedly v0.0.16

Weekly downloads
391
License
Apache-2.0
Repository
github
Last release
3 years ago

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 });
0.0.15

3 years ago

0.0.16

3 years ago

0.0.14

4 years ago

0.0.13

4 years ago

0.0.12

4 years ago

0.0.10

4 years ago

0.0.11

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago