Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-relayone

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-relayone

An unofficial Vue.js component for the RelayOne.

  • 0.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
increased by200%
Maintainers
1
Weekly downloads
 
Created
Source

vue-relayone

An unofficial Vue.js component for the RelayX Button.

Inspire from libitx's vue-money-button.

A Vue.js component that lets you integrate RelayX's payment system into your app or web page.

Installation

npm install vue-relayone --save-dev
# or
yarn add vue-relayone

Usage

<template>
  <div>
    <RelayX
      to="YOUR BITCOIN ADDRESS"
      amount="0.5"
      currency="USD"
      label="Send some loot"
      @payment="handlePayment"
    />
  </div>
</template>

<script>
import RelayX from 'vue-relayone'

export default {
  components: {
    RelayX
  },

  methods: {
    handlePayment(payment) {
      // handle payment
    }
  }
}
</script>

Properties

The following properties can be set on the component:

PropTypeDefault
toStringnull
amountString or Numbernull
editableBooleanfalse
currencyString'USD'
labelStringnull
successMessageStringnull
opReturnStringnull
outputsArray[]
clientIdentifierStringnull
buttonIdString or Numbernull
buttonDataString or Numbernull
typeString - buy or tip'buy'
devModeBooleanfalse
disabledBooleanfalse

An array of outputs can be set instead of the to, amount and currency properties. Each output output object has the following parameters:

NameTypeRequired
addressString
userIdString or Number
scriptString
amountString:heavy_check_mark:
currencyString:heavy_check_mark:

Events

The component emits the following events:

Event
loadTriggered on load
paymentTriggered on a successful payment
errorTriggered on a payment error
cryptoOperationsCallback returning the cryptoOperations object

License

vue-relayone is open source and released under the MIT License.

Copyright (c) 2020 ChainBow, inspire from libitx's vue money button.

FAQs

Package last updated on 29 Apr 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc