@flittpayments/js-sdk 2.0.4 → 2.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -7
- package/dist/cjs/checkout.js +419 -300
- package/dist/esm/checkout.js +429 -331
- package/dist/umd/checkout.js +1 -1
- package/dist/umd/checkout.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|

|
|
2
2
|
# Flitt JavaScript SDK
|
|
3
3
|
|
|
4
|
-
[](https://www.npmjs.com/package/@flittpayments/js-sdk)
|
|
5
|
+
[](https://www.npmjs.com/package/@flittpayments/js-sdk)
|
|
6
|
+
[](https://github.com/flittpayments/flitt-js-sdk)
|
|
7
7
|
|
|
8
8
|
## Installation
|
|
9
9
|
|
|
@@ -21,7 +21,7 @@ or add dependency manually:
|
|
|
21
21
|
```json
|
|
22
22
|
{
|
|
23
23
|
"dependency": {
|
|
24
|
-
"@flittpayments/js-sdk":"^
|
|
24
|
+
"@flittpayments/js-sdk":"^2.0"
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
```
|
|
@@ -38,7 +38,7 @@ git clone git@github.com:flittpayments/js-sdk.git
|
|
|
38
38
|
## Quick start
|
|
39
39
|
|
|
40
40
|
```html
|
|
41
|
-
<script src="https://
|
|
41
|
+
<script src="https://cdn.jsdelivr.net/npm/@flittpayments/js-sdk"></script>
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
## Basic template
|
|
@@ -51,7 +51,7 @@ git clone git@github.com:flittpayments/js-sdk.git
|
|
|
51
51
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
52
52
|
</head>
|
|
53
53
|
<body>
|
|
54
|
-
<script src="https://
|
|
54
|
+
<script src="https://cdn.jsdelivr.net/npm/@flittpayments/js-sdk"></script>
|
|
55
55
|
<script>
|
|
56
56
|
$checkout('Api').scope(function(){
|
|
57
57
|
this.request('api.checkout.form','request', { Parameters } ).done(function(model){
|
|
@@ -76,7 +76,7 @@ git clone git@github.com:flittpayments/js-sdk.git
|
|
|
76
76
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
77
77
|
</head>
|
|
78
78
|
<body>
|
|
79
|
-
<script src="https://
|
|
79
|
+
<script src="https://cdn.jsdelivr.net/npm/@flittpayments/js-sdk"></script>
|
|
80
80
|
<div class="payment-button-container"></div>
|
|
81
81
|
<script>
|
|
82
82
|
$checkout.get('PaymentButton', {
|