@coinflowlabs/vue 0.3.2 → 1.0.1
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 +47 -20
- package/dist/coinflow-vue.js +7088 -7829
- package/dist/coinflow-vue.umd.cjs +6 -6
- package/dist/components/CoinflowPurchase.vue.d.ts +14 -12
- package/dist/components/card-form/CoinflowCardNumberInput.vue.d.ts +4 -4
- package/dist/components/card-form/CoinflowCardNumberOnlyInput.vue.d.ts +4 -4
- package/dist/components/card-form/CoinflowCvvInput.vue.d.ts +1 -1
- package/dist/components/card-form/CoinflowCvvOnlyInput.vue.d.ts +4 -4
- package/dist/components/card-form/useCardformIframe.d.ts +4 -2
- package/dist/components/mobile-wallet/ApplePayOverlay.vue.d.ts +1 -1
- package/dist/components/mobile-wallet/CoinflowApplePayButton.vue.d.ts +1 -1
- package/dist/components/mobile-wallet/CoinflowGooglePayButton.vue.d.ts +1 -1
- package/dist/components/mobile-wallet/MobileWalletButton.vue.d.ts +3 -2
- package/dist/lib/common/CoinflowLibMessageHandlers.d.ts +2 -2
- package/dist/lib/common/CoinflowTypes.d.ts +19 -4
- package/dist/lib/common/CoinflowUtils.d.ts +2 -15
- package/dist/lib/common/Subtotal.d.ts +37 -0
- package/dist/lib/common/card-form/TokenEx.d.ts +19 -2
- package/dist/lib/common/card-form/tokenexHelpers.d.ts +14 -7
- package/dist/lib/common/index.d.ts +1 -0
- package/dist/testing/CardFormTest.vue.d.ts +1 -1
- package/dist/testing/MobileWalletButtonTest.vue.d.ts +1 -1
- package/dist/testing/PurchaseTest.vue.d.ts +1 -1
- package/dist/testing/SavedCardFormTest.vue.d.ts +1 -1
- package/dist/testing/WithdrawTest.vue.d.ts +1 -1
- package/package.json +10 -14
- package/dist/testing/YouPay.vue.d.ts +0 -2
package/README.md
CHANGED
|
@@ -3,38 +3,39 @@
|
|
|
3
3
|
## Withdraw
|
|
4
4
|
|
|
5
5
|
Props:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
|
+
|
|
27
|
+
- `subtotal` (optional): Fix the amount of purchase
|
|
28
|
+
|
|
25
29
|
* `wallet`: The Solana Wallet Adapter Wallet
|
|
26
30
|
* `merchantId`: Your Merchant ID (Contact Coinflow support for this)
|
|
27
31
|
* `connection`: Solana Connection
|
|
28
32
|
* `env` (optional): This defaults to `prod`
|
|
29
|
-
|
|
33
|
+
- For testing set to `staging`
|
|
30
34
|
* `onSuccess` (optional): function to run when the purchase process is successful
|
|
31
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.
|
|
32
|
-
* `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.
|
|
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.
|
|
34
|
-
* `token` (optional): The token to use for the purchase. Defaults to USDC. Currently only supported for the Solana Blockchain.
|
|
35
37
|
* `planCode` (optional): When a subscription is being purchased, the code of the subscription plan.
|
|
36
38
|
* `settlementType` (optional): The settlement method to use for the proceeds of a purchase. (Credits, USDC, or Bank)
|
|
37
|
-
* `amount` (optional): Fix the amount of purchase
|
|
38
39
|
* `webhookInfo` (optional): Product or transaction based information that you want transmitted when you receive webhooks regarding the purchase
|
|
39
40
|
* `email` (optional): Set the default email to use in email entry fields
|
|
40
41
|
* `chargebackProtectionData` (optional):
|
|
@@ -47,6 +48,32 @@ Props:
|
|
|
47
48
|
|
|
48
49
|
# Changelog
|
|
49
50
|
|
|
51
|
+
## 1.0.1
|
|
52
|
+
|
|
53
|
+
- Allow copy to clipboard for Coinflow Iframe
|
|
54
|
+
|
|
55
|
+
## 1.0.0
|
|
56
|
+
|
|
57
|
+
- Deprecating `amount` and `token` in favor of subtotal which can be accessed via the following ways:
|
|
58
|
+
- Added multi-currency support for presentment
|
|
59
|
+
- SEPA and UK Faster Payments support
|
|
60
|
+
|
|
61
|
+
```js
|
|
62
|
+
{
|
|
63
|
+
cents: number;
|
|
64
|
+
currency: 'USD' | 'EUR' | 'GBP' | 'BRL';
|
|
65
|
+
}
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
or
|
|
69
|
+
|
|
70
|
+
```js
|
|
71
|
+
{
|
|
72
|
+
address: string;
|
|
73
|
+
amount: number;
|
|
74
|
+
}
|
|
75
|
+
```
|
|
76
|
+
|
|
50
77
|
## 0.3.1
|
|
51
78
|
|
|
52
79
|
- Added sessionKey authentication mechanism to `CoinflowWithdraw`
|
|
@@ -79,7 +106,7 @@ Props:
|
|
|
79
106
|
|
|
80
107
|
- Added placeholder CSS to card form elements
|
|
81
108
|
|
|
82
|
-
## 0.2.3
|
|
109
|
+
## 0.2.3
|
|
83
110
|
|
|
84
111
|
- Custom fonts for card elements
|
|
85
112
|
|