@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 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`