{"repo":"spreedly/gala","free":true,"listed":false,"github":"https://github.com/spreedly/gala","clone":"git clone https://github.com/spreedly/gala.git","description":"Ruby library for decrypting Apple Pay payment tokens","language":"Ruby","stars":41,"topics":["apple-pay","ruby","spreedly","payments"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"Gala Named after the Gala apple), Gala is a Ruby library for decrypting Apple Pay payment tokens. Gala is available under the MIT License. Ruby support For Ruby v2.3 and below, please use the legacy-ruby branch, or specify gala v0.3.2. For Ruby = 2.4, use the master branch or specify gala v0.4 and above Install Add gala to your Gemfile . If you need to track a development branch or reference functionality not yet contained in the RubyGem release you can specify the gala repo directly. Then bundle install to fetch Gala into your local environment. Usage Gala works by: 1. Initializing an instance of Gala::PaymentToken with the hash of values present in the Apple Pay token string (a JSON representation of this data). 2. Decrypting the token using the PEM formatted merchant certificate and private key (the latter of which, at least, is managed by a third-party such as a gateway or independent processor like Spreedly). Testing Releasing To cut a new gem: Setup RubyGems account Make sure you have a RubyGems account and have setup your local gem credentials with something like this: If you are not yet listed as a gem owner, you will need to request access from @rwdaigle. Release Build and release the gem with (all changes should be committed and pushed to Github): Changelog v0.6.0 Update Openssl to v3.3.2 v0.5.0 Update Openssl to support Ruby 3 v0.4.0 Remove unmaintained aead gem dependency Rely on Ruby 2.4 openssl support for aes-256-gcm ciphers (and specifying the initialization v","default_branch":null,"files":null,"tree":[],"storefront":"/r/spreedly","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/spreedly/gala/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}