@coinflowlabs/vue 0.3.1 → 1.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 +20 -3
- package/dist/coinflow-vue.js +7087 -7827
- package/dist/coinflow-vue.umd.cjs +6 -6
- package/dist/components/CoinflowPurchase.vue.d.ts +35 -19
- package/dist/components/card-form/CoinflowCardNumberInput.vue.d.ts +3 -3
- package/dist/components/card-form/CoinflowCardNumberOnlyInput.vue.d.ts +3 -3
- package/dist/components/card-form/CoinflowCvvOnlyInput.vue.d.ts +3 -3
- package/dist/components/card-form/useCardformIframe.d.ts +4 -2
- package/dist/lib/common/CoinflowLibMessageHandlers.d.ts +2 -2
- package/dist/lib/common/CoinflowTypes.d.ts +14 -6
- 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/package.json +13 -17
- package/dist/testing/YouPay.vue.d.ts +0 -2
package/README.md
CHANGED
|
@@ -22,6 +22,7 @@ Props:
|
|
|
22
22
|
## Purchase
|
|
23
23
|
|
|
24
24
|
Props:
|
|
25
|
+
- `subtotal` (optional): Fix the amount of purchase
|
|
25
26
|
* `wallet`: The Solana Wallet Adapter Wallet
|
|
26
27
|
* `merchantId`: Your Merchant ID (Contact Coinflow support for this)
|
|
27
28
|
* `connection`: Solana Connection
|
|
@@ -29,12 +30,9 @@ Props:
|
|
|
29
30
|
- For testing set to `staging`
|
|
30
31
|
* `onSuccess` (optional): function to run when the purchase process is successful
|
|
31
32
|
* `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
33
|
* `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
34
|
* `planCode` (optional): When a subscription is being purchased, the code of the subscription plan.
|
|
36
35
|
* `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
36
|
* `webhookInfo` (optional): Product or transaction based information that you want transmitted when you receive webhooks regarding the purchase
|
|
39
37
|
* `email` (optional): Set the default email to use in email entry fields
|
|
40
38
|
* `chargebackProtectionData` (optional):
|
|
@@ -47,10 +45,29 @@ Props:
|
|
|
47
45
|
|
|
48
46
|
# Changelog
|
|
49
47
|
|
|
48
|
+
## 1.0.0
|
|
49
|
+
|
|
50
|
+
- Deprecating `amount` and `token` in favor of subtotal which can be accessed via the following ways:
|
|
51
|
+
- Added multi-currency support for presentment
|
|
52
|
+
- SEPA and UK Faster Payments support
|
|
53
|
+
|
|
54
|
+
```js
|
|
55
|
+
{cents: number; currency: 'USD' | 'EUR' | 'GBP' | 'BRL';}
|
|
56
|
+
```
|
|
57
|
+
or
|
|
58
|
+
```js
|
|
59
|
+
{address: string; amount: number;}
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
|
|
50
63
|
## 0.3.1
|
|
51
64
|
|
|
52
65
|
- Added sessionKey authentication mechanism to `CoinflowWithdraw`
|
|
53
66
|
|
|
67
|
+
## 0.3.1
|
|
68
|
+
|
|
69
|
+
- Allow higher versions of Vue as a peer dependency
|
|
70
|
+
|
|
54
71
|
## 0.3.0
|
|
55
72
|
|
|
56
73
|
- Added sessionKey authentication mechanism to `CoinflowPurchase`
|