文件名称:armor_payments_ruby:Ruby Gem与Armor Payments API进行交互
文件大小:23KB
文件格式:ZIP
更新时间:2024-06-09 04:42:52
Ruby
盔甲付款 这旨在成为的干净惯用客户端。 这将处理生成经过身份验证的标头并构建正确嵌套的请求URI,以及为您解析任何响应JSON。 安装 将此行添加到您的应用程序的Gemfile中: gem 'armor_payments' 然后执行: $ bundle 或将其自己安装为: $ gem install armor_payments 用法 Armor Payments API是REST风格的并且是嵌套的,因此客户端依赖于链接。 我们返回一个Excon::Response对象,它具有更好的效果,我们尽可能为您解析了JSON响应主体。 require 'armor_payments' client = ArmorPayments :: API . new 'your-key' , 'your-secret' , should_use_sandbox # There are thre
【文件预览】:
armor_payments_ruby-master
----Guardfile(301B)
----armor_payments.gemspec(1KB)
----Rakefile(28B)
----Gemfile(99B)
----.ruby-gemset(14B)
----.rspec(31B)
----spec()
--------armor_payments()
--------spec_helper.rb(703B)
----.ruby-version(10B)
----.gitignore(154B)
----lib()
--------armor_payments()
--------armor_payments.rb(88B)
----README.md(4KB)
----LICENSE.txt(1KB)