matholroyd / dps-ruby

DPS Ruby library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DPS Ruby gem

This Ruby library is a collection of tools to help interact with or implement a DPS (Direct Payment Standard) server.

Installation

Add this line to your application's Gemfile:

gem 'dps'

And then execute:

$ bundle

Or install it yourself as:

$ gem install dps

Examples

get_endpoint returns the DPS endpoint for a domain. E.g.

Dps::DNS.get_endpoint('example.com')

# if `tworgy.com` has a DNS TXT record with the value 'dps:endpoint url=https://tworgy.com/dps'

Dps::DNS.get_endpoint('tworgy.com') # returns 'https://tworgy.com/dps'

About

DPS Ruby library

License:MIT License


Languages

Language:Ruby 82.3%Language:HTML 13.2%Language:JavaScript 2.8%Language:CSS 1.7%