mandarin_pay 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +29 -0
  3. data/.rubocop.yml +63 -0
  4. data/.travis.yml +6 -0
  5. data/CHANGELOG.md +3 -0
  6. data/Gemfile +9 -0
  7. data/MIT-LICENSE +20 -0
  8. data/README.md +88 -0
  9. data/Rakefile +7 -0
  10. data/app/controllers/.gitkeep +0 -0
  11. data/app/controllers/mandarin_pay_controller.rb +33 -0
  12. data/bin/bundler +16 -0
  13. data/bin/cdiff +16 -0
  14. data/bin/colortab +16 -0
  15. data/bin/coveralls +16 -0
  16. data/bin/decolor +16 -0
  17. data/bin/erubis +16 -0
  18. data/bin/htmldiff +16 -0
  19. data/bin/ldiff +16 -0
  20. data/bin/nokogiri +16 -0
  21. data/bin/rackup +16 -0
  22. data/bin/rails +16 -0
  23. data/bin/rake +16 -0
  24. data/bin/rspec +16 -0
  25. data/bin/sprockets +16 -0
  26. data/bin/term_display +16 -0
  27. data/bin/term_mandel +16 -0
  28. data/bin/thor +16 -0
  29. data/config/routes.rb +11 -0
  30. data/lib/generators/mandarin_pay/install_generator.rb +10 -0
  31. data/lib/generators/mandarin_pay/templates/mandarin_pay.rb +15 -0
  32. data/lib/mandarin_pay/action_view_extension.rb +17 -0
  33. data/lib/mandarin_pay/client.rb +16 -0
  34. data/lib/mandarin_pay/configuration.rb +17 -0
  35. data/lib/mandarin_pay/conformity_params.rb +47 -0
  36. data/lib/mandarin_pay/engine.rb +9 -0
  37. data/lib/mandarin_pay/notification.rb +29 -0
  38. data/lib/mandarin_pay/payment_interface.rb +25 -0
  39. data/lib/mandarin_pay/signature_generator.rb +28 -0
  40. data/lib/mandarin_pay/version.rb +3 -0
  41. data/lib/mandarin_pay.rb +26 -0
  42. data/mandarin_pay.gemspec +24 -0
  43. data/spec/dummy/README.rdoc +261 -0
  44. data/spec/dummy/Rakefile +7 -0
  45. data/spec/dummy/app/controllers/application_controller.rb +4 -0
  46. data/spec/dummy/app/controllers/welcome_controller.rb +5 -0
  47. data/spec/dummy/app/views/layouts/application.html.erb +12 -0
  48. data/spec/dummy/app/views/welcome/index.html.erb +17 -0
  49. data/spec/dummy/config/application.rb +56 -0
  50. data/spec/dummy/config/boot.rb +11 -0
  51. data/spec/dummy/config/database.yml +25 -0
  52. data/spec/dummy/config/environment.rb +6 -0
  53. data/spec/dummy/config/environments/development.rb +40 -0
  54. data/spec/dummy/config/environments/production.rb +70 -0
  55. data/spec/dummy/config/environments/test.rb +40 -0
  56. data/spec/dummy/config/initializers/backtrace_silencers.rb +8 -0
  57. data/spec/dummy/config/initializers/inflections.rb +16 -0
  58. data/spec/dummy/config/initializers/mandarin_pay.rb +4 -0
  59. data/spec/dummy/config/initializers/mime_types.rb +6 -0
  60. data/spec/dummy/config/initializers/secret_token.rb +8 -0
  61. data/spec/dummy/config/initializers/session_store.rb +9 -0
  62. data/spec/dummy/config/initializers/wrap_parameters.rb +15 -0
  63. data/spec/dummy/config/locales/en.yml +5 -0
  64. data/spec/dummy/config/routes.rb +6 -0
  65. data/spec/dummy/config.ru +4 -0
  66. data/spec/dummy/lib/assets/.gitkeep +0 -0
  67. data/spec/dummy/public/404.html +26 -0
  68. data/spec/dummy/public/422.html +26 -0
  69. data/spec/dummy/public/500.html +25 -0
  70. data/spec/dummy/public/favicon.ico +0 -0
  71. data/spec/dummy/script/rails +6 -0
  72. data/spec/mandarin_pay/client_configuration_spec.rb +35 -0
  73. data/spec/mandarin_pay/notification_spec.rb +51 -0
  74. data/spec/mandarin_pay/payment_interface_spec.rb +39 -0
  75. data/spec/spec_helper.rb +11 -0
  76. metadata +177 -0
@@ -0,0 +1,70 @@
1
+ # -*- encoding : utf-8 -*-
2
+ Dummy::Application.configure do
3
+ # Settings specified here will take precedence over those in config/application.rb
4
+
5
+ # Code is not reloaded between requests
6
+ # config.cache_classes = true
7
+
8
+ # Full error reports are disabled and caching is turned on
9
+ # config.consider_all_requests_local = false
10
+ # config.action_controller.perform_caching = true
11
+
12
+ # Disable Rails's static asset server (Apache or nginx will already do this)
13
+ # config.serve_static_assets = false
14
+
15
+ # Compress JavaScripts and CSS
16
+ # config.assets.compress = true
17
+
18
+ # Don't fallback to assets pipeline if a precompiled asset is missed
19
+ # config.assets.compile = false
20
+
21
+ # Generate digests for assets URLs
22
+ # config.assets.digest = true
23
+
24
+ # Defaults to nil and saved in location specified by config.assets.prefix
25
+ # config.assets.manifest = YOUR_PATH
26
+
27
+ # Specifies the header that your server uses for sending files
28
+ # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
29
+ # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
30
+
31
+ # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
32
+ # config.force_ssl = true
33
+
34
+ # See everything in the log (default is :info)
35
+ # config.log_level = :debug
36
+
37
+ # Prepend all log lines with the following tags
38
+ # config.log_tags = [ :subdomain, :uuid ]
39
+
40
+ # Use a different logger for distributed setups
41
+ # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
42
+
43
+ # Use a different cache store in production
44
+ # config.cache_store = :mem_cache_store
45
+
46
+ # Enable serving of images, stylesheets, and JavaScripts from an asset server
47
+ # config.action_controller.asset_host = "http://assets.example.com"
48
+
49
+ # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
50
+ # config.assets.precompile += %w( search.js )
51
+
52
+ # Disable delivery errors, bad email addresses will be ignored
53
+ # config.action_mailer.raise_delivery_errors = false
54
+
55
+ # Enable threaded mode
56
+ # config.threadsafe!
57
+
58
+ # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
59
+ # the I18n.default_locale when a translation can not be found)
60
+ # config.i18n.fallbacks = true
61
+
62
+ # Send deprecation notices to registered listeners
63
+ # config.active_support.deprecation = :notify
64
+
65
+ # Log the query plan for queries taking more than this (works
66
+ # with SQLite, MySQL, and PostgreSQL)
67
+ # config.active_record.auto_explain_threshold_in_seconds = 0.5
68
+
69
+ config.eager_load = true
70
+ end
@@ -0,0 +1,40 @@
1
+ # -*- encoding : utf-8 -*-
2
+ Dummy::Application.configure do
3
+ # Settings specified here will take precedence over those in config/application.rb
4
+
5
+ # The test environment is used exclusively to run your application's
6
+ # test suite. You never need to work with it otherwise. Remember that
7
+ # your test database is "scratch space" for the test suite and is wiped
8
+ # and recreated between test runs. Don't rely on the data there!
9
+ # config.cache_classes = true
10
+
11
+ # Configure static asset server for tests with Cache-Control for performance
12
+ # config.serve_static_assets = true
13
+ # config.static_cache_control = "public, max-age=3600"
14
+
15
+ # Log error messages when you accidentally call methods on nil
16
+ # config.whiny_nils = true
17
+
18
+ # Show full error reports and disable caching
19
+ # config.consider_all_requests_local = true
20
+ # config.action_controller.perform_caching = false
21
+
22
+ # Raise exceptions instead of rendering exception templates
23
+ # config.action_dispatch.show_exceptions = false
24
+
25
+ # Disable request forgery protection in test environment
26
+ # config.action_controller.allow_forgery_protection = false
27
+
28
+ # Tell Action Mailer not to deliver emails to the real world.
29
+ # The :test delivery method accumulates sent emails in the
30
+ # ActionMailer::Base.deliveries array.
31
+ # config.action_mailer.delivery_method = :test
32
+
33
+ # Raise exception on mass assignment protection for Active Record models
34
+ # config.active_record.mass_assignment_sanitizer = :strict
35
+
36
+ # Print deprecation notices to the stderr
37
+ # config.active_support.deprecation = :stderr
38
+
39
+ config.eager_load = false
40
+ end
@@ -0,0 +1,8 @@
1
+ # -*- encoding : utf-8 -*-
2
+ # Be sure to restart your server when you modify this file.
3
+
4
+ # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
5
+ # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
6
+
7
+ # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
8
+ # Rails.backtrace_cleaner.remove_silencers!
@@ -0,0 +1,16 @@
1
+ # -*- encoding : utf-8 -*-
2
+ # Be sure to restart your server when you modify this file.
3
+
4
+ # Add new inflection rules using the following format
5
+ # (all these examples are active by default):
6
+ # ActiveSupport::Inflector.inflections do |inflect|
7
+ # inflect.plural /^(ox)$/i, '\1en'
8
+ # inflect.singular /^(ox)en/i, '\1'
9
+ # inflect.irregular 'person', 'people'
10
+ # inflect.uncountable %w( fish sheep )
11
+ # end
12
+ #
13
+ # These inflection rules are supported but not enabled by default:
14
+ # ActiveSupport::Inflector.inflections do |inflect|
15
+ # inflect.acronym 'RESTful'
16
+ # end
@@ -0,0 +1,4 @@
1
+ MandarinPay.configure do |c|
2
+ c.merchant_id = ENV["MANDARINPAY_MERCHANT_ID"]
3
+ c.sharedsec = ENV["MANDARINPAY_SHAREDSEC"]
4
+ end
@@ -0,0 +1,6 @@
1
+ # -*- encoding : utf-8 -*-
2
+ # Be sure to restart your server when you modify this file.
3
+
4
+ # Add new mime types for use in respond_to blocks:
5
+ # Mime::Type.register "text/richtext", :rtf
6
+ # Mime::Type.register_alias "text/html", :iphone
@@ -0,0 +1,8 @@
1
+ # -*- encoding : utf-8 -*-
2
+ # Be sure to restart your server when you modify this file.
3
+
4
+ # Your secret key for verifying the integrity of signed cookies.
5
+ # If you change this key, all old signed cookies will become invalid!
6
+ # Make sure the secret is at least 30 characters and all random,
7
+ # no regular words or you'll be exposed to dictionary attacks.
8
+ Dummy::Application.config.secret_token = '56662e79656cb0cb0ea739e866e40259dad75beb2b3179e309537b7846d6abd2dc307caeb5104f9a7a9f7959a6e303ade103e3b4175d3eb3af7a1b07b0e3568a'
@@ -0,0 +1,9 @@
1
+ # -*- encoding : utf-8 -*-
2
+ # Be sure to restart your server when you modify this file.
3
+
4
+ Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
5
+
6
+ # Use the database for sessions instead of the cookie-based default,
7
+ # which shouldn't be used to store highly confidential information
8
+ # (create the session table with "rails generate session_migration")
9
+ # Dummy::Application.config.session_store :active_record_store
@@ -0,0 +1,15 @@
1
+ # -*- encoding : utf-8 -*-
2
+ # Be sure to restart your server when you modify this file.
3
+ #
4
+ # This file contains settings for ActionController::ParamsWrapper which
5
+ # is enabled by default.
6
+
7
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
8
+ # ActiveSupport.on_load(:action_controller) do
9
+ # wrap_parameters format: [:json]
10
+ # end
11
+
12
+ # Disable root element in JSON by default.
13
+ ActiveSupport.on_load(:active_record) do
14
+ self.include_root_in_json = false
15
+ end
@@ -0,0 +1,5 @@
1
+ # Sample localization file for English. Add more files in this directory for other locales.
2
+ # See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
+
4
+ en:
5
+ hello: "Hello world"
@@ -0,0 +1,6 @@
1
+ # -*- encoding : utf-8 -*-
2
+ Dummy::Application.routes.draw do
3
+ get "welcome/index"
4
+
5
+ root to: 'welcome#index'
6
+ end
@@ -0,0 +1,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run Dummy::Application
File without changes
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/404.html -->
21
+ <div class="dialog">
22
+ <h1>The page you were looking for doesn't exist.</h1>
23
+ <p>You may have mistyped the address or the page may have moved.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/422.html -->
21
+ <div class="dialog">
22
+ <h1>The change you wanted was rejected.</h1>
23
+ <p>Maybe you tried to change something you didn't have access to.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,25 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/500.html -->
21
+ <div class="dialog">
22
+ <h1>We're sorry, but something went wrong.</h1>
23
+ </div>
24
+ </body>
25
+ </html>
File without changes
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
+
4
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
5
+ require File.expand_path('../../config/boot', __FILE__)
6
+ require 'rails/commands'
@@ -0,0 +1,35 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "spec_helper"
4
+
5
+ describe MandarinPay::Client do
6
+ before(:each) do
7
+ MandarinPay.configure do |config|
8
+ config.merchant_id = "your_custom_merchant_id"
9
+ config.sharedsec = "custom_sharedsec"
10
+ end
11
+ end
12
+
13
+ it "should set configuration information correctly" do
14
+ expect(MandarinPay.merchant_id).to eq "your_custom_merchant_id"
15
+ expect(MandarinPay.sharedsec).to eq "custom_sharedsec"
16
+ end
17
+
18
+ it "should set default values" do
19
+ MandarinPay.configure do |config|
20
+ end
21
+
22
+ expect(MandarinPay.merchant_id).to eq "your_merchant_id"
23
+ expect(MandarinPay.sharedsec).to eq "sharedsec"
24
+ expect(MandarinPay.success_callback).to be_instance_of(Proc)
25
+ expect(MandarinPay.fail_callback).to be_instance_of(Proc)
26
+ end
27
+
28
+ it "should set success_callback" do
29
+ MandarinPay.configure do |config|
30
+ config.success_callback = -> { 2 + 5 }
31
+ end
32
+
33
+ expect(MandarinPay.success_callback.call).to eq(7)
34
+ end
35
+ end
@@ -0,0 +1,51 @@
1
+ # frozen_string_literal: true
2
+ require "spec_helper"
3
+
4
+ describe MandarinPay::Notification do
5
+ before(:each) do
6
+ MandarinPay.configure do |config|
7
+ end
8
+ end
9
+
10
+ it "should return correct valid_card_binding_signature?" do
11
+ data = {
12
+ "orderId" => "12",
13
+ "price" => "1200",
14
+ "sign" => "dd00e1d8e77ae1b62e5c05a9023ebda218d94955202ad323563046fc10f19a98"
15
+ }
16
+ notification = MandarinPay::Notification.new(data)
17
+ expect(notification.valid_card_binding_signature?).to eq true
18
+ end
19
+
20
+ it "should return correct valid_payment_signature?" do
21
+ data = {
22
+ "orderId" => "12",
23
+ "price" => "1200",
24
+ "sign" => "dd00e1d8e77ae1b62e5c05a9023ebda218d94955202ad323563046fc10f19a98"
25
+ }
26
+ notification = MandarinPay::Notification.new(data)
27
+ expect(notification.valid_payment_signature?).to eq true
28
+ end
29
+
30
+ it "should return correct valid_transaction_signature?" do
31
+ data = {
32
+ "orderId" => "12",
33
+ "price" => "1200",
34
+ "sign" => "dd00e1d8e77ae1b62e5c05a9023ebda218d94955202ad323563046fc10f19a98"
35
+ }
36
+ notification = MandarinPay::Notification.new(data)
37
+ expect(notification.valid_transaction_signature?).to eq true
38
+ end
39
+
40
+ it "should return correct success" do
41
+ notification = MandarinPay::Notification.new(Hash["InvId", "12"])
42
+ expect(notification.success).to eq "OK"
43
+ end
44
+
45
+ it "should raise error when wrong kind argument is passed to signature generator" do
46
+ expect do
47
+ notification = MandarinPay::Notification.new({})
48
+ notification.generate_signature_for(:bullshit)
49
+ end.to raise_error(ArgumentError, "Available kinds are only :payment, :result or :success")
50
+ end
51
+ end
@@ -0,0 +1,39 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "spec_helper"
4
+
5
+ describe MandarinPay::PaymentInterface do
6
+ let(:payment_interface) do
7
+ MandarinPay::PaymentInterface.new do
8
+ self.price = 123.00
9
+ self.order_id = 123
10
+ self.customer_email = "user@example.com"
11
+ end
12
+ end
13
+
14
+ before(:each) do
15
+ MandarinPay.configure do |config|
16
+ config.merchant_id = "1"
17
+ config.sharedsec = "123"
18
+ end
19
+ end
20
+
21
+ it "should return correct base_url" do
22
+ expect(payment_interface.base_url).to eq "https://secure.mandarinpay.com/Pay"
23
+ end
24
+
25
+ it "should return correct pay_params" do
26
+ data = { "merchantId" => "1",
27
+ "price" => "123.00",
28
+ "orderId" => 123,
29
+ "sign" => "61d7d36e47e7750591a29eaa770634618de7c1645800bc012ef87998ecba7b7e",
30
+ "customer_email" => "user@example.com" }
31
+ expect(payment_interface.pay_params).to eq data
32
+ end
33
+
34
+ it "should return correct initial_options" do
35
+ expect(payment_interface.initial_options). to eq(merchant_id: "1",
36
+ price: 123.00,
37
+ order_id: 123)
38
+ end
39
+ end
@@ -0,0 +1,11 @@
1
+ $LOAD_PATH.unshift File.expand_path("..", __FILE__)
2
+ $LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)
3
+
4
+ require "coveralls"
5
+ Coveralls.wear!
6
+
7
+ ENV["RAILS_ENV"] = "test"
8
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
9
+
10
+ require "rspec/rails"
11
+ require "mandarin_pay"
metadata ADDED
@@ -0,0 +1,177 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: mandarin_pay
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Alexander Maslov
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-05-08 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 4.0.0
20
+ - - "<="
21
+ - !ruby/object:Gem::Version
22
+ version: '5.1'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: 4.0.0
30
+ - - "<="
31
+ - !ruby/object:Gem::Version
32
+ version: '5.1'
33
+ - !ruby/object:Gem::Dependency
34
+ name: sqlite3
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '1.3'
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: 1.3.0
43
+ type: :development
44
+ prerelease: false
45
+ version_requirements: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - "~>"
48
+ - !ruby/object:Gem::Version
49
+ version: '1.3'
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: 1.3.0
53
+ - !ruby/object:Gem::Dependency
54
+ name: rspec-rails
55
+ requirement: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - "~>"
58
+ - !ruby/object:Gem::Version
59
+ version: 3.4.0
60
+ type: :development
61
+ prerelease: false
62
+ version_requirements: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - "~>"
65
+ - !ruby/object:Gem::Version
66
+ version: 3.4.0
67
+ description: Ruby wrapper for Mandarin Pay API aimed to make Mandarin Pay integration
68
+ even more easier
69
+ email:
70
+ - drakmail@gmail.com
71
+ executables: []
72
+ extensions: []
73
+ extra_rdoc_files: []
74
+ files:
75
+ - ".gitignore"
76
+ - ".rubocop.yml"
77
+ - ".travis.yml"
78
+ - CHANGELOG.md
79
+ - Gemfile
80
+ - MIT-LICENSE
81
+ - README.md
82
+ - Rakefile
83
+ - app/controllers/.gitkeep
84
+ - app/controllers/mandarin_pay_controller.rb
85
+ - bin/bundler
86
+ - bin/cdiff
87
+ - bin/colortab
88
+ - bin/coveralls
89
+ - bin/decolor
90
+ - bin/erubis
91
+ - bin/htmldiff
92
+ - bin/ldiff
93
+ - bin/nokogiri
94
+ - bin/rackup
95
+ - bin/rails
96
+ - bin/rake
97
+ - bin/rspec
98
+ - bin/sprockets
99
+ - bin/term_display
100
+ - bin/term_mandel
101
+ - bin/thor
102
+ - config/routes.rb
103
+ - lib/generators/mandarin_pay/install_generator.rb
104
+ - lib/generators/mandarin_pay/templates/mandarin_pay.rb
105
+ - lib/mandarin_pay.rb
106
+ - lib/mandarin_pay/action_view_extension.rb
107
+ - lib/mandarin_pay/client.rb
108
+ - lib/mandarin_pay/configuration.rb
109
+ - lib/mandarin_pay/conformity_params.rb
110
+ - lib/mandarin_pay/engine.rb
111
+ - lib/mandarin_pay/notification.rb
112
+ - lib/mandarin_pay/payment_interface.rb
113
+ - lib/mandarin_pay/signature_generator.rb
114
+ - lib/mandarin_pay/version.rb
115
+ - mandarin_pay.gemspec
116
+ - spec/dummy/README.rdoc
117
+ - spec/dummy/Rakefile
118
+ - spec/dummy/app/controllers/application_controller.rb
119
+ - spec/dummy/app/controllers/welcome_controller.rb
120
+ - spec/dummy/app/views/layouts/application.html.erb
121
+ - spec/dummy/app/views/welcome/index.html.erb
122
+ - spec/dummy/config.ru
123
+ - spec/dummy/config/application.rb
124
+ - spec/dummy/config/boot.rb
125
+ - spec/dummy/config/database.yml
126
+ - spec/dummy/config/environment.rb
127
+ - spec/dummy/config/environments/development.rb
128
+ - spec/dummy/config/environments/production.rb
129
+ - spec/dummy/config/environments/test.rb
130
+ - spec/dummy/config/initializers/backtrace_silencers.rb
131
+ - spec/dummy/config/initializers/inflections.rb
132
+ - spec/dummy/config/initializers/mandarin_pay.rb
133
+ - spec/dummy/config/initializers/mime_types.rb
134
+ - spec/dummy/config/initializers/secret_token.rb
135
+ - spec/dummy/config/initializers/session_store.rb
136
+ - spec/dummy/config/initializers/wrap_parameters.rb
137
+ - spec/dummy/config/locales/en.yml
138
+ - spec/dummy/config/routes.rb
139
+ - spec/dummy/lib/assets/.gitkeep
140
+ - spec/dummy/public/404.html
141
+ - spec/dummy/public/422.html
142
+ - spec/dummy/public/500.html
143
+ - spec/dummy/public/favicon.ico
144
+ - spec/dummy/script/rails
145
+ - spec/mandarin_pay/client_configuration_spec.rb
146
+ - spec/mandarin_pay/notification_spec.rb
147
+ - spec/mandarin_pay/payment_interface_spec.rb
148
+ - spec/spec_helper.rb
149
+ homepage: http://github.com/drakmail/mandarin_pay
150
+ licenses:
151
+ - MIT
152
+ metadata: {}
153
+ post_install_message:
154
+ rdoc_options: []
155
+ require_paths:
156
+ - lib
157
+ required_ruby_version: !ruby/object:Gem::Requirement
158
+ requirements:
159
+ - - ">="
160
+ - !ruby/object:Gem::Version
161
+ version: '0'
162
+ required_rubygems_version: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ requirements: []
168
+ rubyforge_project:
169
+ rubygems_version: 2.5.1
170
+ signing_key:
171
+ specification_version: 4
172
+ summary: Ruby wrapper for Mandarin Pay API
173
+ test_files:
174
+ - spec/mandarin_pay/client_configuration_spec.rb
175
+ - spec/mandarin_pay/notification_spec.rb
176
+ - spec/mandarin_pay/payment_interface_spec.rb
177
+ has_rdoc: