vue-money-button
An unofficial Vue.js component for the Money Button.
The official Money Button moneybutton.js script is only suitable for basic usage on static web pages. This library allows Money Button to be used in Vue.js projects and benefit from reactive properties.
Installation
Usage
Properties
The following properties can be set on the component:
Prop | Type | Required | Default |
---|---|---|---|
to |
String |
:heavy_check_mark: | null |
amount |
String or Number |
:heavy_check_mark: | null |
currency |
String |
USD |
|
label |
String |
:heavy_check_mark: | null |
hideAmount |
Boolean |
false |
|
opReturn |
String |
null |
|
outputs |
String (Stringified JSON) |
[] |
|
clientIdentifier |
String |
null |
|
buttonId |
String |
null |
|
buttonData |
String |
null |
|
type |
String - buy or tip |
buy |
Events
The component emits the following events:
Event | |
---|---|
payment |
Triggered on a successful payment |
error |
Triggered on a payment error |