0.1.1 • Published 4 years ago

ethpay.vue v0.1.1

Weekly downloads
6
License
MPL-2.0
Repository
github
Last release
4 years ago

ETHPay for Vue.js

A Button to the Web3, Demo is here

Quick Start

For Vue.js developers, just install it from NPM:

npm i ethpay.vue

Vue.js Usage

<template>
  <div id="app">
    <ETHPay
      caption="Try with"
      to="0x4ED9232873D1a0cac85d92497a5e9FA312Cfe30d"
      title="Try with ETH Pay"
      value="0.1"
    />
  </div>
</template>

<script lang="ts">
import { Component, Vue } from "vue-property-decorator";
import ETHPay from "ethpay.vue";
import "ethpay.vue/dist/ethpay.vue.css";

@Component({
  components: {
    ETHPay
  }
})
export default class App extends Vue {}
</script>
PropsDescTypeRequired
currencyCurrency symbol'eth'Yes
toAddressStringYes
valueThe amount of currencyNumberYes
captionButton captionStringNo
titleHTML TitleStringNo
dataThe data append to TxString, starts with '0x'No

Typescript

Typescript is supported.

LISENCE

MPL-2.0