4.17.4 • Published 10 days ago

@paybook/sync-widget v4.17.4

Weekly downloads
67
License
-
Repository
github
Last release
10 days ago

Sync Widget

User friendly web interface to make use of Paybook's Sync services.

Quick Start

Installation

Sync Widget can be installed via npm. It is recommended to get Sync Widget this way.

npm install --save @paybook/sync-widget

Note: You'll need to have npm 2.7.0 or greater installed, since this library is hosted as a scoped package.

Integration

Using bundlers (Webpack)

Import styles

import "@paybook/sync-widget/dist/widget.css";

Import SyncWidget class

import SyncWidget from "@paybook/sync-widget";

Usage

Creating an instance

To create an instance of SyncWidget, you need to create an element in the DOM with a unique selector. By default SyncWidget will search for "#widget". Here's an example.

<div id="widget"></div>

Note: The widget will replace this element.

Once you have the element, you're ready to instantiate a new SyncWidget with your desired configuration.

// Any of the following formats may be used

var syncWidget = new SyncWidget("sync_token");

var syncWidget = new SyncWidget({
        token: "sync_token"
    });
    
var syncWidget = new SyncWidget({
        token: "sync_token",
        element: "#widget",
        config: {
            locale: "es", 
            entrypoint: {
                country: "MX"
            }
        }
    });

Documentation

4.17.4

10 days ago

4.17.3

2 months ago

4.17.2

4 months ago

4.17.1

4 months ago

4.17.0

4 months ago

4.16.0

6 months ago

4.14.3

10 months ago

4.15.0

10 months ago

4.15.1

8 months ago

4.14.1

1 year ago

4.14.2

11 months ago

4.14.0

1 year ago

4.13.0

1 year ago

4.12.5

2 years ago

4.12.6

2 years ago

4.12.3

2 years ago

4.12.4

2 years ago

4.12.1

2 years ago

4.12.0

2 years ago

4.11.1

2 years ago

4.11.2

2 years ago

4.11.0

2 years ago

4.10.1

2 years ago

4.10.0

2 years ago

4.9.0

2 years ago

4.8.1

2 years ago

4.8.0

3 years ago

4.7.0

3 years ago

4.6.0

3 years ago

4.5.0

3 years ago

4.4.0

3 years ago

4.3.2

3 years ago

4.3.1

3 years ago

4.3.0

3 years ago

4.2.1

3 years ago

4.2.0

3 years ago

4.1.0

3 years ago

4.0.2

3 years ago

4.0.1

3 years ago

4.0.0

3 years ago

3.4.0

3 years ago

3.4.1

3 years ago

3.3.0

4 years ago

3.2.0

4 years ago

3.1.0

4 years ago

3.0.2

4 years ago

3.0.1

4 years ago

3.0.0

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.2.0

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago