@coinflowlabs/vue 0.1.0 → 0.2.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 +52 -0
- package/dist/coinflow-vue.js +2417 -2271
- package/dist/coinflow-vue.umd.cjs +12 -7
- package/dist/components/CoinflowIframe.vue.d.ts +34 -0
- package/dist/components/CoinflowPurchaseProtection.vue.d.ts +24 -0
- package/dist/components/card-form/CoinflowCardNumberInput.vue.d.ts +0 -1
- package/dist/components/card-form/CoinflowCardNumberOnlyInput.vue.d.ts +46 -0
- package/dist/components/mobile-wallet/CoinflowApplePayButton.vue.d.ts +237 -0
- package/dist/components/mobile-wallet/CoinflowGooglePayButton.vue.d.ts +237 -0
- package/dist/components/mobile-wallet/MobileWalletButton.vue.d.ts +221 -0
- package/dist/index.d.ts +6 -1
- package/dist/lib/common/CoinflowTypes.d.ts +2 -1
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# Coinflow Vue
|
|
2
|
+
|
|
3
|
+
## Withdraw
|
|
4
|
+
|
|
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.
|
|
21
|
+
|
|
22
|
+
## Purchase
|
|
23
|
+
|
|
24
|
+
Props:
|
|
25
|
+
* `wallet`: The Solana Wallet Adapter Wallet
|
|
26
|
+
* `merchantId`: Your Merchant ID (Contact Coinflow support for this)
|
|
27
|
+
* `connection`: Solana Connection
|
|
28
|
+
* `env` (optional): This defaults to `prod`
|
|
29
|
+
- For testing set to `staging`
|
|
30
|
+
* `onSuccess` (optional): function to run when the purchase process is successful
|
|
31
|
+
* `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
|
+
* `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
|
+
* `planCode` (optional): When a subscription is being purchased, the code of the subscription plan.
|
|
36
|
+
* `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
|
+
* `webhookInfo` (optional): Product or transaction based information that you want transmitted when you receive webhooks regarding the purchase
|
|
39
|
+
* `email` (optional): Set the default email to use in email entry fields
|
|
40
|
+
* `chargebackProtectionData` (optional):
|
|
41
|
+
* `disableApplePay` (optional): Ability to disable Apple Pay
|
|
42
|
+
* `disableGooglePay` (optional): Ability to disable Google Pay
|
|
43
|
+
* `customerInfo` (optional): Additional information about the customer
|
|
44
|
+
* `rent` (optional, Solana only): Specify the blockchain rent amount to add to the total
|
|
45
|
+
* `nativeSolToConvert` (optional, Solana only): Specify the amount of native SOL to convert wSOL for the purchase
|
|
46
|
+
* `jwtToken` (optional): A JWT token which encodes verified checkout parameters to prevent spoofing of arguments.
|
|
47
|
+
|
|
48
|
+
# Changelog
|
|
49
|
+
|
|
50
|
+
## 1.0.0
|
|
51
|
+
|
|
52
|
+
- Initial Version of the SDK
|