Fluidcoins Component for Vue
A Vue Plugin for Fluidcoins payment button.
Installation
npm install @fluidcoins/vue-fluidcoins --save
# OR
yarn add @fluidcoins/vue-fluidcoins
Usage
import Fluidcoins from '@fluidcoins/vue-fluidcoins'
<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 |
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.