Giter Club home page Giter Club logo

libpayto's Introduction

libpayto

A Java library for handling payto:// URIs, as described in RFC 8905

payto:// URIs

RFC 8905 specifies a standard that allows encoding payment information into a regular URI. When a user tries to load such an URI (by for example, clicking on a Web link), their payment handler app should load, and with the payment details information populated by the data in the URI, prompt the user to make the transaction. This is akin to mailto: URIs, which allow Web developers to place links on their sites that prepares an e-mail when clicked by visitors. Should this standard proliferate, it would create a seamless, two-click payment experience for the customer (who, after clicking the payment link, only needs to verify the details and authorize the transaction). Standardization allows for a single scheme being used by all vendors, thereby creating an uniform experience for cutomers of all banks, credit card issuers, fintechs, credit unions and other financial services. Web developers need not to place a separate payment button for all these, but rather can use a single, standardized solution.

Using the library

The heart of the API is the LibPayto class, which handles parsing of an URI, as well as notifying registered handlers about new payment data being available. Handlers are to be registered through PaytoHandlerRegistry.

A minimal application registers its handlers through PaytoHandlerRegistry.INSTANCE.register(), as well as sets itself as the application to open payto:// URIs with (this is done through the OS's API). When it then receives an URI to open, it passes it to LibPayto.dispatchURI(). A minimal working example for an Android-based app can be found in the LibpaytoExample repository.

libpayto's People

Contributors

bence98 avatar

Watchers

 avatar  avatar

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.