@coinflowlabs/vue
v1.8.1
Published
## Withdraw
Readme
Coinflow Vue
Withdraw
Props:
wallet: The Solana Wallet Adapter WalletmerchantId: Your Merchant ID (Contact Coinflow support for this)connection: Solana Connectionenv(optional): This defaults toprod- For testing set to
staging
- For testing set to
onSuccess(optional): function to run when the withdrawal process is successfullockAmount(optional): Whether to let the user select the amount to withdraw or to disable the inputamount(optional): The amount to withdraw - required iflockAmount=truetokens(optional): Define a list to filter the available tokenslockDefaultToken(optional): Only allow the default token to be usedemail(optional): Set the default email to be used in entry fieldsbankAccountLinkRedirect(optional): The URL to be used for bank account setupadditionalWallets(optional): Define additional wallets to assign to the userusePermit(optional): Pass as false to disable permit message signing for EVM and use approve transactionstransactionSigner(optional): Public Key of the wallet which will actually execute the withdrawal transaction. Must be associated with the same withdrawer as the main wallet.
Purchase
Props:
subtotal(optional): Fix the amount of purchase
wallet: The Solana Wallet Adapter WalletmerchantId: Your Merchant ID (Contact Coinflow support for this)connection: Solana Connectionenv(optional): This defaults toprod- For testing set to
staging
- For testing set to
onSuccess(optional): function to run when the purchase process is successfultransaction(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.debugTx(optional): Setting this totruewill sign the transaction with the wallet, and send the transaction with no preflight checks allowing for easier debug of any issues.planCode(optional): When a subscription is being purchased, the code of the subscription plan.settlementType(optional): The settlement method to use for the proceeds of a purchase. (Credits, USDC, or Bank)webhookInfo(optional): Product or transaction based information that you want transmitted when you receive webhooks regarding the purchaseemail(optional): Set the default email to use in email entry fieldschargebackProtectionData(optional):customerInfo(optional): Additional information about the customerallowedPaymentMethods(optional): The payment methods displayed on the UI. If omitted, all available payment methods will be displayed.rent(optional, Solana only): Specify the blockchain rent amount to add to the totalnativeSolToConvert(optional, Solana only): Specify the amount of native SOL to convert wSOL for the purchasejwtToken(optional): A JWT token which encodes verified checkout parameters to prevent spoofing of arguments.zeroAuthorization(optional): Pass in true if you wish to perform a zero authorization card transaction
Changelog
1.8.1
- Added support for custom pay-in fees via
customPayInFeesin the JWT token or URL parameters. This allows merchants to add custom fee line items (fixed or percentage-based) that are displayed during checkout.
1.8.0
- New Blockchain Support: The SDK now supports Stellar, a fast and low-cost blockchain for payments. Pass blockchain='stellar' to enable Stellar payment processing.
1.7.0
- Added zeroAuthorizationConfig prop to CoinflowPurchase for controlling zero authorization behavior (show/hide saved payment methods, verify a specific card by token). Deprecates isZeroAuthorization boolean prop.
1.6.0
- New Blockchain Support: The SDK now supports Monad, a high-performance EVM-compatible blockchain. Pass blockchain='monad' to enable Monad payment processing.
1.5.1
- Internal change to a query parameter name for zero authorization
1.5.0
- Added zeroAuthorization parameter to allow zero authorization card transactions
1.4.3
- NSure SDK added as a dependency
1.4.2
- Added email as a field for customerInfo
1.4.1
- Added
redemptionCheckto purchase (Solana only)
1.4.0
- Added
allowedWithdrawSpeedsquery parameter to allow merchants to specify what withdraw speeds are allowed. The default is all.
1.3.1
- Added more
chargebackProtectionDataproduct types
1.3.0
- Added
partialUsdcCheckedproperty to pre-check partial USDC payment checkbox
1.1.0
- Added Multi-Currency Presentment via the
presentmentproperty
1.0.7
- Improving Withdraw With Session Keys
1.0.6
- Add credentialless to iframe
1.0.5
- Fixing
onAuthDeclinedcallback
1.0.4
- Added
sellerprop tochargebackProtectionData
1.0.3
- Added 3DS Challenge Handling to the standalone Google Pay button
1.0.2
- Added
allowedPaymentMethodstoCoinflowPurchase - Options are:
- 'card' = Credit and debit cards
- 'ach' = ACH bank account transfers
- 'fasterPayments' = UK Faster Payments (GBP Bank Transfers)
- 'sepa' = SEPA bank account transfers (EUR Bank Transfers)
- 'pix' = Pix bank account transfers (BRL Bank Transfers)
- 'usdc' = USDC
- 'googlePay' = Google Pay
- 'applePay' = Apple Pay
- 'credits' = Credits
1.0.1
- Allow copy to clipboard for Coinflow Iframe
1.0.0
- Deprecating
amountandtokenin favor of subtotal which can be accessed via the following ways: - Added multi-currency support for presentment
- SEPA and UK Faster Payments support
{
cents: number;
currency: 'USD' | 'EUR' | 'GBP' | 'BRL';
}or
{
address: string;
amount: number;
}0.3.1
- Added sessionKey authentication mechanism to
CoinflowWithdraw
0.3.1
- Allow higher versions of Vue as a peer dependency
0.3.0
- Added sessionKey authentication mechanism to
CoinflowPurchase
0.2.8
- Added
onErrorcallback to Apple Pay and Google Pay buttons
0.2.7
- Added overlay to digital wallet buttons to make the loading time 0
0.2.6
- Fixed
CoinflowCvvOnlyInputissues
0.2.5
- Added
getWalletFromEmailfunction toCoinflowUtils
0.2.4
- Added placeholder CSS to card form elements
0.2.3
- Custom fonts for card elements
1.0.0
- Initial Version of the SDK
