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