0.01
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Provides access to API at https://www.auricsystems.com/products/paymentvault-tokenization/ for storing data using a token.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.6
>= 0
>= 0

Runtime

~> 0.13.1
 Project Readme

Auric::Vault::Door

TODO: Write a gem description

Installation

Add this line to your application's Gemfile:

gem 'auric-vault-door'

And then execute:

$ bundle

Or install it yourself as:

$ gem install auric-vault-door

Usage

It now expects a hash or arguments when being created: args = {secret: 'shared_secret_goes_here', mtid: 'merchant_id', config_id: 'config_id', segment: '123'} #optional: production: true, defaults to false

@door = Auric::Vault::Door.new(args)

@door.encrypt('string_to_encrypt') => 'dpFAl7BY260IWzFxxxx'

@door.decrypt('dpFAl7BY260IWzFxxxx') => 'string_to_encrypt'

If either method fails, checking error should return a string about what went wrong:

@door.error => "VLT-112: This method is missing the following fields. Method: decrypt [token]"

TODO: Only encrypt and decrypt methods are currently implemented. Better error error handling Tests.

Contributing

  1. Fork it ( https://github.com/[my-github-username]/auric-vault-door/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request