2.1.0 • Published 8 years ago

crowdstart-checkout v2.1.0

Weekly downloads
1
License
MIT
Repository
-
Last release
8 years ago

Crowdstart Checkout

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

Preview

Screenshot Preview

Usage

Set the href of your button to #checkout.

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

Configure the checkout widget however you'd like.

<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/. You can also see it in action in the Crowdstart documentation.

Testing

To test locally, phantomjs2 must be installed.

2.1.0

8 years ago

2.0.39

8 years ago

2.0.38

8 years ago

2.0.37

8 years ago

2.0.36

8 years ago

2.0.35

8 years ago

2.0.34

8 years ago

2.0.33

8 years ago

2.0.32

8 years ago

2.0.31

8 years ago

2.0.30

8 years ago

2.0.29

8 years ago

2.0.28

8 years ago

2.0.27

8 years ago

2.0.26

8 years ago

2.0.25

8 years ago

2.0.24

8 years ago

2.0.23

8 years ago

2.0.22

8 years ago

2.0.21

8 years ago

2.0.20

8 years ago

2.0.19

8 years ago

2.0.18

8 years ago

2.0.17

8 years ago

2.0.16

8 years ago

2.0.15

8 years ago

2.0.14

8 years ago

2.0.13

8 years ago

2.0.12

8 years ago

2.0.11

8 years ago

2.0.10

8 years ago

2.0.9

8 years ago

2.0.8

8 years ago

2.0.7

8 years ago

2.0.6

8 years ago

2.0.5

8 years ago

2.0.4

8 years ago

2.0.3

8 years ago

2.0.2

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.1.29

9 years ago

1.1.17

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.30

9 years ago

1.0.28

9 years ago

1.0.26

9 years ago

1.0.22

9 years ago

1.0.21

9 years ago

1.0.8

9 years ago

1.0.3

9 years ago

1.0.1

9 years ago