@coinflowlabs/react-native 2.1.7 → 2.1.8

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
@@ -17,6 +17,13 @@ Props:
17
17
  - For testing set to `staging`
18
18
  * `onSuccess` (optional): function to run when the withdrawal process is successful
19
19
  * `lockAmount` (optional): Whether to let the user select the amount to withdraw or to disable the input
20
+ * `amount` (optional): The amount to withdraw - required if `lockAmount=true`
21
+ * `tokens` (optional): Define a list to filter the available tokens
22
+ * `lockDefaultToken` (optional): Only allow the default token to be used
23
+ * `email` (optional): Set the default email to be used in entry fields
24
+ * `bankAccountLinkRedirect` (optional): The URL to be used for bank account setup
25
+ * `supportsVersionedTransactions` (optional): Instruct the system that versioned transactions are supported
26
+ * `additionalWallets` (optional): Define additional wallets to assign to the user
20
27
 
21
28
  ## Purchase Usage
22
29
  ```
@@ -37,8 +44,18 @@ Props:
37
44
  * `transaction` (optional): transaction for the user to run which redeems their credits with your smart contract. Create this transaction just like you would for a normal user who has USDC in their account.
38
45
  * `partialSigners` (optional): Keypairs of Partial Signers to sign the transaction with, this is necessary when initializing new accounts as the new account Keypair must sign the transaction.
39
46
  * `debugTx` (optional): Setting this to `true` will sign the transaction with the wallet, and send the transaction with no preflight checks allowing for easier debug of any issues.
47
+ * `token` (optional): The token to use for the purchase. Defaults to USDC. Currently only supported for the Solana Blockchain.
40
48
  * `planCode` (optional): When a subscription is being purchased, the code of the subscription plan.
41
49
  * `settlementType` (optional): The settlement method to use for the proceeds of a purchase. (Credits, USDC, or Bank)
50
+ * `amount` (optional): Fix the amount of purchase
51
+ * `webhookInfo` (optional): Product or transaction based information that you want transmitted when you receive webhooks regarding the purchase
52
+ * `email` (optional): Set the default email to use in email entry fields
53
+ * `chargebackProtectionData` (optional):
54
+ * `disableApplePay` (optional): Ability to disable Apple Pay
55
+ * `disableGooglePay` (optional): Ability to disable Google Pay
56
+ * `customerInfo` (optional): Additional information about the customer
57
+ * `supportsVersionedTransactions` (optional): Instruct the system that you support versioned transactions
58
+ * `rent` (optional): Specify the blockchain rent amount to add to the total
42
59
 
43
60
  ## 2.1.7
44
61
 
@@ -156,6 +156,7 @@ export interface CoinflowCommonPurchaseProps extends CoinflowTypes {
156
156
  chargebackProtectionData?: ChargebackProtectionData;
157
157
  disableApplePay?: boolean;
158
158
  disableGooglePay?: boolean;
159
+ settlementType?: SettlementType;
159
160
  }
160
161
  export interface CoinflowSolanaPurchaseProps extends CoinflowCommonPurchaseProps {
161
162
  wallet: SolanaWallet;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coinflowlabs/react-native",
3
- "version": "2.1.7",
3
+ "version": "2.1.8",
4
4
  "description": "React Native Component for Coinflow",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -33,14 +33,14 @@
33
33
  "react-native-get-random-values": "^1.10.0",
34
34
  "bs58": "^5.0.0",
35
35
  "bn.js": "^5.2.1",
36
- "@solana/web3.js": "^1.87.3"
36
+ "@solana/web3.js": "^1.89.1"
37
37
  },
38
38
  "devDependencies": {
39
- "@types/react": "^18.2.47",
39
+ "@types/react": "^18.2.48",
40
40
  "@types/react-native": "^0.72.7",
41
41
  "eslint-config-react-app": "^7.0.1",
42
42
  "typescript": "^5.3.2",
43
43
  "@solana/wallet-adapter-react": "^0.15.32",
44
- "@near-wallet-selector/core": "^8.9.1"
44
+ "@near-wallet-selector/core": "^8.9.2"
45
45
  }
46
46
  }