# crowdstart-checkout

> One Click Checkout for Crowdstart

Latest version **2.1.0** (published 2015-12-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install crowdstart-checkout
pnpm add crowdstart-checkout
yarn add crowdstart-checkout
bun add crowdstart-checkout
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.1.0 |
| Published | 2015-12-04 |
| First published | 2015-05-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Crowdstart, LLC |
| Maintainers | crowdstart, davidtai, zeekay |
| Keywords | checkout, crowdfunding, store, ecommerce |

## Links

- npm: https://www.npmjs.com/package/crowdstart-checkout
- npm.io page: https://npm.io/package/crowdstart-checkout

## Dependencies (7)

- [card](https://npm.io/package/card.md) ^1.0.0
- [riot](https://npm.io/package/riot.md) 2.2.4
- [is-number](https://npm.io/package/is-number.md) ^2.0.2
- [is-object](https://npm.io/package/is-object.md) ^1.0.1
- [requisite](https://npm.io/package/requisite.md) ^1.11.0
- [crowdcontrol](https://npm.io/package/crowdcontrol.md) ^1.0.54
- [crowdstart.js](https://npm.io/package/crowdstart.js.md) ^2.2.3

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 2.1.0 (latest) — 2015-12-04
- 2.0.39 — 2015-12-04
- 2.0.38 — 2015-12-04
- 2.0.37 — 2015-12-03
- 2.0.36 — 2015-11-30
- 2.0.35 — 2015-11-30
- 2.0.34 — 2015-11-30
- 2.0.33 — 2015-11-30
- 2.0.32 — 2015-11-30
- 2.0.31 — 2015-11-30
- 2.0.30 — 2015-11-27
- 2.0.29 — 2015-11-27
- 2.0.28 — 2015-11-27
- 2.0.27 — 2015-11-23
- 2.0.26 — 2015-11-20
- … 38 more at https://npm.io/package/crowdstart-checkout/versions

## README

# Crowdstart Checkout
Our checkout widget makes it possible to start taking pre-orders in minutes,
and is quite customizable.

## Preview
![Screenshot Preview](examples/basic/basic_screenshot.png)

## Usage
Set the `href` of your button to `#checkout`.

```html
<a class="btn" href="#checkout">Buy Now</a>
```

Configure the checkout widget however you'd like.

```javascript
<script src="https://rawgit.com/crowdstart/checkout/master/checkout.js"></script>
<script>
  // Create a new client for Crowdstart API.
  var api = new Crowdstart.API('eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJiaXQiOjI0LCJqdGkiOiJVMDc0RlU3MHVhWSIsInN1YiI6IkVxVEdveHA1dTMifQ.g_MqPv2s0DnyFdhkUMzYn9mtKaXNwmlEM14WcFq_s5Yd2eqH16TB9thxOdDE8ylcoBMgyI3eimSHJxGq7oj-EA')

  // Create default order, should match whatever the user is trying to pre-order
  var order = new Crowdstart.Order('usd',[
    new Crowdstart.ItemRef('84cRXBYs9jX7w', -1),
    new Crowdstart.ItemRef('doge-shirt', 100)
  ]);

  // Create default user (pre-populated in form fields)
  var user = new Crowdstart.User('joe@fan.com', 'Joe', 'Fan')

  // Social sharing settings
  var config = {
    facebook:   'suchtees',
    googlePlus: 'suchtees',
    twitter:    'suchtees',
  }

  // Customize theme
  Crowdstart.setTheme({
    borderRadius: 5,
  })

  // Instantiate widget, can be called multiple times, overriding order in widget.
  Crowdstart.Checkout('checkout', api, order, user, config);
</script>
```

## Examples
You can find examples in [examples/](examples/basic/index.html). You can also
see it in action in the [Crowdstart
documentation](http://www.crowdstart.com/docs/checkout).

## Testing
To test locally, [phantomjs2](https://www.npmjs.com/package/phantomjs2) must be installed.

---
_Source: https://npm.io/package/crowdstart-checkout · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
