@busha/commerce-js 1.0.28 → 1.0.30

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.
Files changed (2) hide show
  1. package/README.md +7 -8
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -7,10 +7,10 @@ Receive crypto payments with Busha commerce
7
7
  ### Browser
8
8
 
9
9
  ```html
10
- <script src="https://cdn.jsdelivr.net/npm/@busha/commerce-js@1.0.17/dist/index.min.js"></script>
10
+ <script src="https://cdn.jsdelivr.net/npm/@busha/commerce-js/dist/index.min.js"></script>
11
11
 
12
12
  <script>
13
- const BushaCommerce = window.BushaCommerce;
13
+ const BushaCommerce = window.BushaCommerce
14
14
  </script>
15
15
  ```
16
16
 
@@ -25,7 +25,7 @@ npm i @busha/commerce-js
25
25
  ```
26
26
 
27
27
  ```javascript
28
- import BushaCommerce from "@busha/commerce-js";
28
+ import BushaCommerce from "@busha/commerce-js"
29
29
  ```
30
30
 
31
31
  ## Usage
@@ -42,19 +42,18 @@ const payload = {
42
42
  meta: { email: "email@example.com", name: "Busha" }, // optional: customer info
43
43
  devMode: true, // optional; defaults to false
44
44
  onClose: (d) => {
45
- console.log("Payment cancelled!", d);
45
+ console.log("Payment cancelled!", d)
46
46
  },
47
47
  onSuccess: (d) => {
48
- console.log(d);
48
+ console.log(d)
49
49
  },
50
50
  source: "payment-link", // optional
51
51
  source_id: "18937r13gufbqwe", // optional
52
- };
52
+ }
53
53
 
54
- BushaCommerce(payload);
54
+ BushaCommerce(payload)
55
55
  ```
56
56
 
57
57
  > Can't find your public key ?
58
58
  >
59
59
  > ![Public key](https://res.cloudinary.com/busha-inc/image/upload/v1764326664/commerce-js/Screenshot_2025-11-28_at_11.42.10.png)
60
-
package/package.json CHANGED
@@ -39,7 +39,7 @@
39
39
  },
40
40
  "name": "@busha/commerce-js",
41
41
  "description": "Busha commerce js library",
42
- "version": "1.0.28",
42
+ "version": "1.0.30",
43
43
  "main": "./dist/index.cjs.js",
44
44
  "types": "./dist/index.d.ts",
45
45
  "exports": {