@cryptocadet/react-crypto-pay 2.3.0 → 3.0.0

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
@@ -1,18 +1,18 @@
1
1
  # React-Crypto-Pay
2
2
 
3
3
 
4
- React-Crypto-Pay is an api for evm-chain crypto payment integration.
4
+ React-Crypto-Pay is an api for evm-chain and Solana crypto payment integration.
5
5
 
6
6
  ## Features
7
7
 
8
- - Accept payments across multiple EVM networks
8
+ - Accept payments across multiple EVM networks and Solana
9
9
  - Accept any token you want
10
10
  - Integrates with Web3Modal
11
11
  - Create affiliate codes for your own referral program
12
12
 
13
13
  ## Installation
14
14
 
15
- React-Crypto-Pay requires [Node.js](https://nodejs.org/) v16+ to run.
15
+ React-Crypto-Pay requires [Node.js](https://nodejs.org/) v17+ to run.
16
16
 
17
17
  Install the dependencies and devDependencies and start the server.
18
18
 
@@ -43,6 +43,9 @@ const ComponentName = () => {
43
43
  shippingAddress='required'
44
44
  label='BUTTON TITLE'
45
45
  style={null}
46
+ lang='en'
47
+ eth='false'
48
+ sol='true'
46
49
 
47
50
  />
48
51
 
@@ -52,7 +55,18 @@ const ComponentName = () => {
52
55
  export default ComponentName;
53
56
  ```
54
57
 
55
- The 'email' and 'shippingAddress' variables can be required in order to request the user's email and shipping address upon payment. Styles can be input via the style variable to change the button style.
58
+ The pay portal defaults to 'eth' but you can set this to false. In order to add Solana, sol should be set to 'true'.
59
+
60
+ The 'email' and 'shippingAddress' variables can be required in order to request the user's email and shipping address upon payment. Styles can be input via the style variable to change the button style. The lang property corresponds to the ISO 639-1 Code for the following supported languages:
61
+
62
+ - ar (Arabic)
63
+ - de (German)
64
+ - en (English)
65
+ - es (Spanish)
66
+ - fr (French)
67
+ - pt (Portuguese)
68
+ - zh (Chinese)
69
+
56
70
 
57
71
  In your page or index file, dynamically import the created component:
58
72