@hypersokrat/hyper-pay 1.0.30 → 1.0.32

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 +27 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -36,3 +36,30 @@ Install the HyperPay library using npm or yarn package managers:
36
36
 
37
37
  ```bash
38
38
  npm install hyperpay-library
39
+ ```
40
+
41
+ Once installed, import the payment module into your application:
42
+
43
+ ```javascript
44
+ import { HyperPay } from "hyperpay-library";
45
+ ```
46
+
47
+ ## Connect MetaMask
48
+
49
+ Users initiate payments securely through MetaMask:
50
+
51
+ - Click the module button to connect to MetaMask.
52
+ - This connection authorizes transactions securely.
53
+
54
+ ## Invoke Payment Component
55
+
56
+ Developers integrate payment components:
57
+
58
+ ```javascript
59
+ // Example usage of HyperPay component
60
+ <HyperPay
61
+ projectId="your_project_id_here"
62
+ amount={100} // Amount to be paid in cryptocurrency
63
+ modulStyles={modulStyles} //custom styles
64
+ />
65
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hypersokrat/hyper-pay",
3
- "version": "1.0.30",
3
+ "version": "1.0.32",
4
4
  "description": "Crypto payment gateway",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",