@volr/react-ui 0.2.4 → 0.2.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 +17 -0
- package/dist/index.cjs +384 -298
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -6
- package/dist/index.d.ts +10 -6
- package/dist/index.js +143 -57
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -75,6 +75,23 @@ function CheckoutButton() {
|
|
|
75
75
|
}
|
|
76
76
|
```
|
|
77
77
|
|
|
78
|
+
### External Wallet Payments (Optional)
|
|
79
|
+
|
|
80
|
+
Enable external wallet payments inside PaymentModal:
|
|
81
|
+
|
|
82
|
+
```tsx
|
|
83
|
+
const volrConfig: VolrUIConfig = {
|
|
84
|
+
projectApiKey: 'your-project-api-key',
|
|
85
|
+
appName: 'My App',
|
|
86
|
+
allowExternalWalletPayment: true,
|
|
87
|
+
walletPolicy: { requireVolrWalletOnLogin: false },
|
|
88
|
+
};
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
Notes:
|
|
92
|
+
- External wallet payments are only shown for ERC-20 tokens with permit support.
|
|
93
|
+
- When `walletPolicy.requireVolrWalletOnLogin` is true, external wallet payment is disabled.
|
|
94
|
+
|
|
78
95
|
### Payment with Reference ID
|
|
79
96
|
|
|
80
97
|
Track payments with your own order ID:
|