ethpay.vue

0.1.1 • Public • Published

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>
Props Desc Type Required
currency Currency symbol 'eth' Yes
to Address String Yes
value The amount of currency Number Yes
caption Button caption String No
title HTML Title String No
data The data append to Tx String, starts with '0x' No

Typescript

Typescript is supported.

LISENCE

MPL-2.0

Readme

Keywords

none

Package Sidebar

Install

npm i ethpay.vue

Weekly Downloads

0

Version

0.1.1

License

MPL-2.0

Unpacked Size

3.4 MB

Total Files

16

Last publish

Collaborators

  • unsignedint8