0.1.1 • Published 2 years ago

faster-billing-sdk-js v0.1.1

Weekly downloads
1
License
UNLICENSED
Repository
github
Last release
2 years ago

Faster is a framework which provides analytics, account, billing and remote-config features.

This project is related to SDK for Javascript development given a easy-to-use API to work with.

Currently released features:

  • Analytics (Check Package):

    • Track Device Installation
    • Session Control
    • Track & Send Events
  • Remote Config (Check Package):

    • Run AB Tests
    • Manage Feature Rollout
  • Account (This package):

    • Manage Sessions
    • Create, Link and Manage Credentials
  • Billing:

    • Stripe payment integration

1 - Getting Started

Installing

Get the package from the public npm registry, with your favorite package manager:

yarn add faster-billing-sdk-js

or

npm install faster-billing-sdk-js

Request credentials

Request a new product_id and authenticator with faster-team at Movile.

Usage

Import the Faster Billing module and FasterConfiguration object using ES6 syntax.

import  FasterBilling, { FasterConfiguration } from  'faster-billing-sdk-js';

Configuring & Running

Now, configure and start Faster SDK:

Typescript and JavaScript:

const  configuration = new  asterConfiguration('__product_id__', '__environment__', '__authenticator__', options);

FasterBilling.configure(configuration);

fasterBilling = FasterBilling.start();

Payment Profile

Create a payment profile

fasterBilling.integration.stripe.createPaymentProfile('__billing_platform_id__', {
    name: 'name',
    identityNumber: 11111,
    identityType: 'CPF',
    address: {
      street: 'street',
      city: 'city',
      number: 1,
      neighborhood: 'neigh',
      state: 'state',
      zipCode: '11111'
    }
  });

Purchase a sku

fasterBilling.integration.stripe.purchase('__payment_profile_id__', '__sku_id__', quantity, '__payment_method_id__');
0.1.1

2 years ago

0.1.0

2 years ago

0.0.20

2 years ago

0.0.21

2 years ago

0.0.19

2 years ago

0.0.11

2 years ago

0.0.12

2 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.5

3 years ago

0.0.6

3 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago