tonder-web-sdk 1.8.1 → 1.9.1

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 CHANGED
@@ -11,7 +11,7 @@ npm i tonder-web-sdk
11
11
 
12
12
  or using an script tag
13
13
  ```html
14
- <script src="https://zplit-stage.s3.amazonaws.com/v1/bundle.min.js"></script>
14
+ <script src="https://zplit-prod.s3.amazonaws.com/v1/bundle.min.js"></script>
15
15
  ```
16
16
 
17
17
  Add dependencies to the root of the app (index.html)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tonder-web-sdk",
3
- "version": "1.8.1",
3
+ "version": "1.9.1",
4
4
  "description": "tonder sdk for integrations",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -340,7 +340,7 @@ export class InlineCheckout {
340
340
  const total = Number(this.cartTotal)
341
341
 
342
342
  let cardTokens = null;
343
- if(this.radioChecked === "new"){
343
+ if(this.radioChecked === "new" || this.radioChecked === undefined){
344
344
  cardTokens = await this.#getCardTokens();
345
345
  }else{
346
346
  cardTokens = {