Giter Site home page Giter Site logo

zthomas / metapay-chrome Goto Github PK

View Code? Open in Web Editor NEW
20.0 5.0 7.0 1.34 MB

A Chrome extension wallet for Stellar that simplifies payment.

Home Page: https://pay.meta.re

HTML 63.16% JavaScript 36.84%
stellar stellar-lumens cryptocurrency crypto-wallet wallet chrome chrome-extension vuejs

metapay-chrome's Introduction

MetaPay Chrome Extension

MetaPay is a lightweight wallet for stellar lumens that enables one click purchases. It's MetaMask for the Stellar network.

For developers, it's super simple, just add a link like this... ๐Ÿบ Support us (try it)

<a data-meta-pay
	href="https://stellar.meta.re/transaction?to=GBJXNFFH53PICPBYZGYCXG7GA6Y5IGPEVTVQCFMVJIV5P5Z3ZIYTELVJ&amount=50&memo=Thanks!"
	target="_blank" >Send Lumens</a>

If you have built apps for MetaMask, you'll agree that this is much easier to integrate :)

How it works

When the user has the extension installed, it will look for link clicks with the attribute data-meta-pay and parses the link url. It will open a notification window with the parsed url parameters.

Fallback

Don't worry, while the extension makes the purchase experience seamless, it's not required for your app to work. If the user does not have the extension install, the link will just redirect them to our web version in a new tab.

Supported URL Parameters

parameter values
to stellar public address
amount numeric
memo string
memoType string

Roadmap

This repo is a compiled version of the chrome app. It's the exact app that's submitted and runs on your browser. If you are looking to contribute, we are still working on a documentation site and a new dev repo. For now, feel free to add submit issues and give us feedback

  • support for federation
  • improved documentation
  • asset type support

metapay-chrome's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

metapay-chrome's Issues

Add a way to detect if the user has this extension installed

Metamask injects some web3 into the window so that you can detect if its installed and if there is a default account, this should do something similar and set some properties on window.

We should be able to:

  • Detect if they have MetaPay extension installed
  • Detect if they have an account set up

LICENSE.md is missing

in order to use this extensions in commercial projects a LICENSE declaration is needed.

where is original source code?

in order to facilitate a widespread adoption of this extension, the original source code should be included in this repository with all the build chain.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.