0.1.0 • Published 4 years ago
@fluidcoins/vue-fluidcoins v0.1.0
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.
0.1.0
4 years ago