3.1.62 • Published 2 years ago

open-speed-xcell v3.1.62

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Speed.js ES Module

Use Speed.js as an ES module.

Note: You must load Speed.js directly from https://js.tryspeed.com. You cannot include it in a bundle or host it yourself. This package is the same as the above link and wraps the global Speed object provided by the Speed.js script as an ES module.

Introduction

Speed JS is an easy-to-use solution for businesses who want to start accepting crypto payments on their platform with a few lines of code.

Create a checkout session to collect payments. It is the easiest way to accept one-time payments with a custom-branded hosted payment page. Accepting cryptocurrency as a payment method will give you access to a whole new market of consumers who are a part of the community.

Installation

Use to install the Speed.js module:

npm install @speed/speed-js

or

yarn add @speed/speed-js

Usage

Import Speed.js

This function returns a newly created Speed object once speed.js is loaded.

import { Speed } from "@speed/speed-js";

// Speed.js is not initiated until this is called
const speed = new Speed("pk_test_fdrdetxilogwetazubs");

We have placed a random API key in this example. Replace it with your actual publishable API keys to test this code through your Speed account.

For more information on how to use Speed.js, please refer to the Speed.js API reference or learn to accept a payment with Speed.

Manually include the script tag

Manually add the Speed.js script tag to the <head> on your site. When you call Speed with your publishable key, it will use the existing script tag.

<!-- Somewhere in your site's <head> -->
<script src="https://js.tryspeed.com"></script>

Once the script is loaded you can create an object of speed.js by passing a publishable key.

const speed = new Speed("pk_test_fdrdetxilogwetazubs");

Create Checkout Session

To create a checkout session you can call the function of speed.js to create a checkout session by passing a required parameter to it.

speed.createCheckoutSession({
  currency: "INR",
  amount: 10,
  successUrl: "https://example.com",
  cancelUrl: "https://example.com",
});

Speed.js Documentation

3.1.56

2 years ago

3.1.55

2 years ago

3.1.58

2 years ago

3.1.57

2 years ago

3.1.59

2 years ago

3.1.54

2 years ago

3.1.53

2 years ago

3.1.61

2 years ago

3.1.60

2 years ago

3.1.62

2 years ago

3.1.52

2 years ago

3.1.51

2 years ago

3.1.44

2 years ago

3.1.41

2 years ago

3.1.40

2 years ago

3.1.39

2 years ago

3.1.38

2 years ago

3.1.31

2 years ago

3.1.30

2 years ago

3.1.29

2 years ago

3.1.28

2 years ago

3.1.27

2 years ago

3.1.26

2 years ago

3.1.21

2 years ago

3.1.20

2 years ago

3.1.19

2 years ago

3.1.18

2 years ago

3.1.17

2 years ago

3.1.16

2 years ago

3.1.15

2 years ago

3.1.14

2 years ago

3.1.13

2 years ago

3.1.12

2 years ago

3.1.11

2 years ago

3.1.10

2 years ago

3.1.9

2 years ago

3.1.8

2 years ago

3.1.7

2 years ago

3.1.6

2 years ago

3.1.5

2 years ago

3.1.4

2 years ago

3.1.3

2 years ago

3.1.2

2 years ago

3.1.1

2 years ago

3.1.0

2 years ago

3.0.89

2 years ago

3.0.88

2 years ago

3.0.87

2 years ago

3.0.86

2 years ago

3.0.85

2 years ago

3.0.84

2 years ago

3.0.83

2 years ago

3.0.82

2 years ago

3.0.81

2 years ago

3.0.80

2 years ago

3.0.79

2 years ago

3.0.78

2 years ago

3.0.77

2 years ago

3.0.76

2 years ago

3.0.75

2 years ago

3.0.74

2 years ago

3.0.73

2 years ago

3.0.72

2 years ago

3.0.71

2 years ago

3.0.70

2 years ago

3.0.69

2 years ago

3.0.68

2 years ago

3.0.67

2 years ago

3.0.66

2 years ago

3.0.65

2 years ago

3.0.64

2 years ago

3.0.63

2 years ago

3.0.62

2 years ago

3.0.60

2 years ago

3.0.59

2 years ago

3.0.58

2 years ago

3.0.57

2 years ago

3.0.56

2 years ago

3.0.55

2 years ago

3.0.54

2 years ago

3.0.53

2 years ago

3.0.52

2 years ago

3.0.51

2 years ago

3.0.50

2 years ago

3.0.49

2 years ago

3.0.48

2 years ago

3.0.47

2 years ago

3.0.46

2 years ago

3.0.45

2 years ago

3.0.44

2 years ago

3.0.43

2 years ago

3.0.42

2 years ago

3.0.41

2 years ago

3.0.40

2 years ago

3.0.39

2 years ago

3.0.38

2 years ago

3.0.37

2 years ago

3.0.36

2 years ago

3.0.35

2 years ago

3.0.34

2 years ago

3.0.33

2 years ago

3.0.32

2 years ago

3.0.31

2 years ago

3.0.30

2 years ago

3.0.29

2 years ago

3.0.28

2 years ago

3.0.27

2 years ago

3.0.26

2 years ago

3.0.25

2 years ago

3.0.23

2 years ago

3.0.22

2 years ago

3.0.21

2 years ago

3.0.20

2 years ago

3.0.19

2 years ago

3.0.16

2 years ago

3.0.15

2 years ago

3.0.14

2 years ago

3.0.13

2 years ago

3.0.12

2 years ago

3.0.11

2 years ago

3.0.10

2 years ago

3.0.9

2 years ago

3.0.8

2 years ago

3.0.7

2 years ago

3.0.6

2 years ago

3.0.5

2 years ago

3.0.4

2 years ago

3.0.3

2 years ago

3.0.2

2 years ago

3.0.1

2 years ago

3.0.0

2 years ago

2.0.33

2 years ago

2.0.32

2 years ago

2.0.31

2 years ago

2.0.30

2 years ago

2.0.29

2 years ago

2.0.28

2 years ago

2.0.27

2 years ago

2.0.26

2 years ago

2.0.25

2 years ago

2.0.24

2 years ago

2.0.23

2 years ago

2.0.22

2 years ago

2.0.21

2 years ago

2.0.20

2 years ago

2.0.19

2 years ago

2.0.18

2 years ago

2.0.17

2 years ago

2.0.16

2 years ago

2.0.15

2 years ago

2.0.14

2 years ago

2.0.13

2 years ago

2.0.12

2 years ago

2.0.11

2 years ago

2.0.10

2 years ago

2.0.9

2 years ago

2.0.8

2 years ago

2.0.7

2 years ago

2.0.6

2 years ago

2.0.5

2 years ago

2.0.4

2 years ago

2.0.3

2 years ago

2.0.2

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.0.0

2 years ago