addie-js

0.0.6 • Public • Published

Addie

This is the JavaScript client SDK for the Addie miniservice.

Usage

import addie from 'addie-js';

const saveKeys = (keys) => { /* handle persisting keys here */ };
const getKeys = () => { /* return keys here. Can be async */ };

const uuid = await addie.createUser(saveKeys, getKeys);

// unimplemented const updatedUser = await addie.addProcessorAccount(uuid, /* processorInfo - there is a reference stripe implementation in the repo, but not quite ready for public release yet */);

// unimplemented const paymentIntent = await addie.getPaymentIntent(uuid, <processor>, <processorInfo>);

const deleted = await addie.deleteUser(uuid, newStateHash); // returns true on success

/addie-js/

    Package Sidebar

    Install

    npm i addie-js

    Weekly Downloads

    1

    Version

    0.0.6

    License

    MIT

    Unpacked Size

    4.27 kB

    Total Files

    3

    Last publish

    Collaborators

    • zachbabb