@coinflowlabs/vue 1.0.0 → 1.0.2

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
@@ -3,31 +3,34 @@
3
3
  ## Withdraw
4
4
 
5
5
  Props:
6
- * `wallet`: The Solana Wallet Adapter Wallet
7
- * `merchantId`: Your Merchant ID (Contact Coinflow support for this)
8
- * `connection`: Solana Connection
9
- * `env` (optional): This defaults to `prod`
10
- - For testing set to `staging`
11
- * `onSuccess` (optional): function to run when the withdrawal process is successful
12
- * `lockAmount` (optional): Whether to let the user select the amount to withdraw or to disable the input
13
- * `amount` (optional): The amount to withdraw - required if `lockAmount=true`
14
- * `tokens` (optional): Define a list to filter the available tokens
15
- * `lockDefaultToken` (optional): Only allow the default token to be used
16
- * `email` (optional): Set the default email to be used in entry fields
17
- * `bankAccountLinkRedirect` (optional): The URL to be used for bank account setup
18
- * `additionalWallets` (optional): Define additional wallets to assign to the user
19
- * `usePermit` (optional): Pass as false to disable permit message signing for EVM and use approve transactions
20
- * `transactionSigner` (optional): Public Key of the wallet which will actually execute the withdrawal transaction. Must be associated with the same withdrawer as the main wallet.
6
+
7
+ - `wallet`: The Solana Wallet Adapter Wallet
8
+ - `merchantId`: Your Merchant ID (Contact Coinflow support for this)
9
+ - `connection`: Solana Connection
10
+ - `env` (optional): This defaults to `prod`
11
+ - For testing set to `staging`
12
+ - `onSuccess` (optional): function to run when the withdrawal process is successful
13
+ - `lockAmount` (optional): Whether to let the user select the amount to withdraw or to disable the input
14
+ - `amount` (optional): The amount to withdraw - required if `lockAmount=true`
15
+ - `tokens` (optional): Define a list to filter the available tokens
16
+ - `lockDefaultToken` (optional): Only allow the default token to be used
17
+ - `email` (optional): Set the default email to be used in entry fields
18
+ - `bankAccountLinkRedirect` (optional): The URL to be used for bank account setup
19
+ - `additionalWallets` (optional): Define additional wallets to assign to the user
20
+ - `usePermit` (optional): Pass as false to disable permit message signing for EVM and use approve transactions
21
+ - `transactionSigner` (optional): Public Key of the wallet which will actually execute the withdrawal transaction. Must be associated with the same withdrawer as the main wallet.
21
22
 
22
23
  ## Purchase
23
24
 
24
25
  Props:
26
+
25
27
  - `subtotal` (optional): Fix the amount of purchase
28
+
26
29
  * `wallet`: The Solana Wallet Adapter Wallet
27
30
  * `merchantId`: Your Merchant ID (Contact Coinflow support for this)
28
31
  * `connection`: Solana Connection
29
32
  * `env` (optional): This defaults to `prod`
30
- - For testing set to `staging`
33
+ - For testing set to `staging`
31
34
  * `onSuccess` (optional): function to run when the purchase process is successful
32
35
  * `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.
33
36
  * `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.
@@ -36,15 +39,32 @@ Props:
36
39
  * `webhookInfo` (optional): Product or transaction based information that you want transmitted when you receive webhooks regarding the purchase
37
40
  * `email` (optional): Set the default email to use in email entry fields
38
41
  * `chargebackProtectionData` (optional):
39
- * `disableApplePay` (optional): Ability to disable Apple Pay
40
- * `disableGooglePay` (optional): Ability to disable Google Pay
41
42
  * `customerInfo` (optional): Additional information about the customer
43
+ * `allowedPaymentMethods` (optional): The payment methods displayed on the UI. If omitted, all available payment methods will be displayed.
42
44
  * `rent` (optional, Solana only): Specify the blockchain rent amount to add to the total
43
45
  * `nativeSolToConvert` (optional, Solana only): Specify the amount of native SOL to convert wSOL for the purchase
44
46
  * `jwtToken` (optional): A JWT token which encodes verified checkout parameters to prevent spoofing of arguments.
45
47
 
46
48
  # Changelog
47
49
 
50
+ ## 1.0.2
51
+
52
+ - Added `allowedPaymentMethods` to `CoinflowPurchase`
53
+ - Options are:
54
+ - 'card' = Credit and debit cards
55
+ - 'ach' = ACH bank account transfers
56
+ - 'fasterPayments' = UK Faster Payments (GBP Bank Transfers)
57
+ - 'sepa' = SEPA bank account transfers (EUR Bank Transfers)
58
+ - 'pix' = Pix bank account transfers (BRL Bank Transfers)
59
+ - 'usdc' = USDC
60
+ - 'googlePay' = Google Pay
61
+ - 'applePay' = Apple Pay
62
+ - 'credits' = Credits
63
+
64
+ ## 1.0.1
65
+
66
+ - Allow copy to clipboard for Coinflow Iframe
67
+
48
68
  ## 1.0.0
49
69
 
50
70
  - Deprecating `amount` and `token` in favor of subtotal which can be accessed via the following ways:
@@ -52,14 +72,21 @@ Props:
52
72
  - SEPA and UK Faster Payments support
53
73
 
54
74
  ```js
55
- {cents: number; currency: 'USD' | 'EUR' | 'GBP' | 'BRL';}
75
+ {
76
+ cents: number;
77
+ currency: 'USD' | 'EUR' | 'GBP' | 'BRL';
78
+ }
56
79
  ```
80
+
57
81
  or
82
+
58
83
  ```js
59
- {address: string; amount: number;}
84
+ {
85
+ address: string;
86
+ amount: number;
87
+ }
60
88
  ```
61
89
 
62
-
63
90
  ## 0.3.1
64
91
 
65
92
  - Added sessionKey authentication mechanism to `CoinflowWithdraw`
@@ -92,7 +119,7 @@ or
92
119
 
93
120
  - Added placeholder CSS to card form elements
94
121
 
95
- ## 0.2.3
122
+ ## 0.2.3
96
123
 
97
124
  - Custom fonts for card elements
98
125