@fluidcoins/vue-fluidcoins-v2
v0.1.2
Published
A Vue Plugin for Fluidcoins payment button
Downloads
1
Maintainers
Readme
Fluidcoins Component for Vue
A Vue Plugin for Fluidcoins payment button.
Demo
Installation
npm install @fluidcoins/vue-fluidcoins-v2 --save
# OR
yarn add @fluidcoins/vue-fluidcoins-v2
Usage
import Fluidcoins from '@fluidcoins/vue-fluidcoins-v2'
<fluidcoins
type="secondary"
rounded
publicKey="PUBLIC_KEY"
:amount="90000"
email="myemail.com"
:on-success="onSuccess"
/>
API
| Prop | Required | Type | Default |
| ------------- | ------------- | ------------- | ------------- |
| publicKey | true | string | undefined
. Public key from Fluidcoins' Dashboard. |
| amount | true | number | undefined
|
| email | true | string | undefined
|
| on-success | true | function | undefined
|
| type | false | string | 'primary' |
| rounded | false | boolean | true
|
| on-load | false | function | () => {}
|
| on-close | false | function | () => {}
|
| on-error | false | function | () => {}
|
| name | false | string | undefined
|
| phone | false | string | undefined
|
| metadata | false | Object | {}
|
| callback_url | false | string | undefined
|
| currency | false | string | Defaults to default currency set on Fluidcoins' Dashboard |
Please checkout Fluidcoins' Documentation for other options to help you accept crypto payments online easily.