workarea-authorize_cim 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.editorconfig +20 -0
- data/.github/ISSUE_TEMPLATE/bug_report.md +37 -0
- data/.github/ISSUE_TEMPLATE/documentation-request.md +17 -0
- data/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- data/.gitignore +13 -0
- data/.rails-rubocop.yml +130 -0
- data/.rubocop.yml +13 -0
- data/CHANGELOG.md +90 -0
- data/CODE_OF_CONDUCT.md +3 -0
- data/CONTRIBUTING.md +3 -0
- data/Gemfile +12 -0
- data/LICENSE +52 -0
- data/LICENSE.md +3 -0
- data/README.md +40 -0
- data/Rakefile +50 -0
- data/app/errors/workarea/payment/create_profile_error.rb +19 -0
- data/app/models/workarea/payment.decorator +14 -0
- data/app/models/workarea/payment/authorize/credit_card.decorator +61 -0
- data/app/models/workarea/payment/capture/credit_card.decorator +38 -0
- data/app/models/workarea/payment/profile.decorator +169 -0
- data/app/models/workarea/payment/purchase/credit_card.decorator +61 -0
- data/app/models/workarea/payment/refund.decorator +19 -0
- data/app/models/workarea/payment/refund/credit_card.decorator +39 -0
- data/app/models/workarea/payment/store_credit_card.decorator +122 -0
- data/app/models/workarea/payment/tender/credit_card.decorator +25 -0
- data/app/models/workarea/payment/transaction.decorator +16 -0
- data/bin/rails +17 -0
- data/bin/rake +17 -0
- data/bin/rspec +17 -0
- data/bin/rubocop +17 -0
- data/config/initializers/configuration.rb +3 -0
- data/lib/active_merchant/billing/bogus_authorize_net_cim_gateway.rb +99 -0
- data/lib/workarea/authorize_cim.rb +47 -0
- data/lib/workarea/authorize_cim/engine.rb +10 -0
- data/lib/workarea/authorize_cim/error.rb +12 -0
- data/lib/workarea/authorize_cim/version.rb +7 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/config/manifest.js +4 -0
- data/test/dummy/app/assets/images/.keep +0 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/stylesheets/application.css +15 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/controllers/concerns/.keep +0 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/jobs/application_job.rb +2 -0
- data/test/dummy/app/mailers/application_mailer.rb +4 -0
- data/test/dummy/app/models/concerns/.keep +0 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/app/views/layouts/mailer.html.erb +13 -0
- data/test/dummy/app/views/layouts/mailer.text.erb +1 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/bin/setup +34 -0
- data/test/dummy/bin/update +29 -0
- data/test/dummy/config.ru +5 -0
- data/test/dummy/config/application.rb +20 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/cable.yml +9 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +56 -0
- data/test/dummy/config/environments/production.rb +86 -0
- data/test/dummy/config/environments/test.rb +43 -0
- data/test/dummy/config/initializers/application_controller_renderer.rb +6 -0
- data/test/dummy/config/initializers/assets.rb +11 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +5 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/new_framework_defaults.rb +21 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/workarea.rb +5 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/puma.rb +47 -0
- data/test/dummy/config/routes.rb +5 -0
- data/test/dummy/config/secrets.yml +22 -0
- data/test/dummy/config/spring.rb +6 -0
- data/test/dummy/db/seeds.rb +3 -0
- data/test/dummy/lib/assets/.keep +0 -0
- data/test/dummy/log/.keep +0 -0
- data/test/dummy/public/404.html +67 -0
- data/test/dummy/public/422.html +67 -0
- data/test/dummy/public/500.html +66 -0
- data/test/dummy/public/apple-touch-icon-precomposed.png +0 -0
- data/test/dummy/public/apple-touch-icon.png +0 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/factories/workarea/factories/authorize_cim_factory.rb +14 -0
- data/test/models/workarea/payment/authorize/credit_card_test.decorator +17 -0
- data/test/models/workarea/payment/authorize_cim_integration_test.rb +137 -0
- data/test/models/workarea/payment/capture/credit_card_test.decorator +80 -0
- data/test/models/workarea/payment/credit_card_integration_test.decorator +30 -0
- data/test/models/workarea/payment/profile_test.rb +60 -0
- data/test/models/workarea/payment/purchase/credit_card_test.decorator +17 -0
- data/test/models/workarea/payment/refund/credit_card_test.decorator +95 -0
- data/test/models/workarea/payment/refund_test.decorator +14 -0
- data/test/models/workarea/payment/store_credit_card_test.decorator +7 -0
- data/test/services/workarea/cancel_order_test.decorator +55 -0
- data/test/support/workarea/authorize_cim_gateway_duplicate_window_patch.rb +14 -0
- data/test/support/workarea/authorize_cim_gateway_vcr_config.rb +22 -0
- data/test/support/workarea/workarea_3_2_backports.rb +57 -0
- data/test/system/workarea/storefront/orders_system_test.decorator +28 -0
- data/test/test_helper.rb +17 -0
- data/test/vcr_cassettes/authorize_net_cim/auth_capture.yml +435 -0
- data/test/vcr_cassettes/authorize_net_cim/auth_void.yml +436 -0
- data/test/vcr_cassettes/authorize_net_cim/purchase_void.yml +436 -0
- data/test/vcr_cassettes/authorize_net_cim/store_auth.yml +371 -0
- data/test/vcr_cassettes/authorize_net_cim/store_purchase.yml +371 -0
- data/test/vcr_cassettes/credit_card/auth_capture.yml +438 -0
- data/test/vcr_cassettes/credit_card/auth_void.yml +439 -0
- data/test/vcr_cassettes/credit_card/purchase_void.yml +439 -0
- data/test/vcr_cassettes/credit_card/store_auth.yml +374 -0
- data/test/vcr_cassettes/credit_card/store_purchase.yml +374 -0
- data/test/workers/workarea/send_refund_email_test.decorator +70 -0
- data/workarea-authorize_cim.gemspec +27 -0
- metadata +187 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 98ad3cc3e60ada0ea06874e4812e8662025b835164ae125021cf871fd3297283
|
4
|
+
data.tar.gz: ca368555567dd8e872ecea930cae55299611c32944ba91b9abf5a6b9e87c49cb
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 609df8ecaec28dda3f8ac786c341968f0cc0b81a33897aeea7f6f255a8519c2c69dc0bf33d3a8919f1cf1a9fa6f2b928f9a4c15bd8f8317561133958c2f498b4
|
7
|
+
data.tar.gz: 07664126c865c13bdf42bc81769f930e2695eff2003cae548004180fe50abfbb3010a835dcad1b514370df47921d9c3efba93c9857b67c21896dc7f762cad8a8
|
data/.editorconfig
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# editorconfig.org
|
2
|
+
root = true
|
3
|
+
|
4
|
+
[*]
|
5
|
+
charset = utf-8
|
6
|
+
indent_style = space
|
7
|
+
end_of_line = lf
|
8
|
+
trim_trailing_whitespace = true
|
9
|
+
insert_final_newline = true
|
10
|
+
|
11
|
+
[{*.rb,*.haml,*.decorator,*.yml,*.yaml,*.jbuilder}]
|
12
|
+
indent_size = 2
|
13
|
+
indent_style = space
|
14
|
+
|
15
|
+
[{*.js,*.jst,*.ejs,*.scss}]
|
16
|
+
indent_size = 4
|
17
|
+
|
18
|
+
[*.md]
|
19
|
+
indent_size = 4
|
20
|
+
trim_trailing_whitespace = false
|
@@ -0,0 +1,37 @@
|
|
1
|
+
---
|
2
|
+
name: Bug report
|
3
|
+
about: Create a report to help us improve Workarea
|
4
|
+
title: ''
|
5
|
+
labels: bug
|
6
|
+
assignees: ''
|
7
|
+
|
8
|
+
---
|
9
|
+
|
10
|
+
⚠️**Before you create**⚠️
|
11
|
+
Please verify the issue you're experiencing is not part of your Workarea project customizations. The best way to do this is with a [vanilla Workarea installation](https://developer.workarea.com/articles/create-a-new-host-application.html). This will help us spend time on fixes/improvements for the whole community. Thank you!
|
12
|
+
|
13
|
+
**Describe the bug**
|
14
|
+
A clear and concise description of what the bug is.
|
15
|
+
|
16
|
+
**To Reproduce**
|
17
|
+
Steps to reproduce the behavior:
|
18
|
+
1. Go to '...'
|
19
|
+
2. Click on '....'
|
20
|
+
3. Scroll down to '....'
|
21
|
+
4. See error
|
22
|
+
|
23
|
+
**Expected behavior**
|
24
|
+
A clear and concise description of what you expected to happen.
|
25
|
+
|
26
|
+
**Workarea Setup (please complete the following information):**
|
27
|
+
- Workarea Version: [e.g. v3.4.6]
|
28
|
+
- Plugins [e.g. workarea-blog, workarea-sitemaps]
|
29
|
+
|
30
|
+
**Attachments**
|
31
|
+
If applicable, add any attachments to help explain your problem, things like:
|
32
|
+
- screenshots
|
33
|
+
- Gemfile.lock
|
34
|
+
- test cases
|
35
|
+
|
36
|
+
**Additional context**
|
37
|
+
Add any other context about the problem here.
|
@@ -0,0 +1,17 @@
|
|
1
|
+
---
|
2
|
+
name: Documentation request
|
3
|
+
about: Suggest documentation
|
4
|
+
title: ''
|
5
|
+
labels: documentation
|
6
|
+
assignees: ''
|
7
|
+
|
8
|
+
---
|
9
|
+
|
10
|
+
**Is your documentation related to a problem? Please describe.**
|
11
|
+
A clear and concise description of what the problem is. Ex. I'm confused by [...]
|
12
|
+
|
13
|
+
**Describe the article you'd like**
|
14
|
+
A clear and concise description of what would be in the documentation article.
|
15
|
+
|
16
|
+
**Additional context**
|
17
|
+
Add any other context or screenshots about the feature request here.
|
@@ -0,0 +1,20 @@
|
|
1
|
+
---
|
2
|
+
name: Feature request
|
3
|
+
about: Suggest an idea for Workarea
|
4
|
+
title: ''
|
5
|
+
labels: enhancement
|
6
|
+
assignees: ''
|
7
|
+
|
8
|
+
---
|
9
|
+
|
10
|
+
**Is your feature request related to a problem? Please describe.**
|
11
|
+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
12
|
+
|
13
|
+
**Describe the solution you'd like**
|
14
|
+
A clear and concise description of what you want to happen.
|
15
|
+
|
16
|
+
**Describe alternatives you've considered**
|
17
|
+
A clear and concise description of any alternative solutions or features you've considered.
|
18
|
+
|
19
|
+
**Additional context**
|
20
|
+
Add any other context or screenshots about the feature request here.
|
data/.gitignore
ADDED
data/.rails-rubocop.yml
ADDED
@@ -0,0 +1,130 @@
|
|
1
|
+
AllCops:
|
2
|
+
DisabledByDefault: true
|
3
|
+
|
4
|
+
# Prefer &&/|| over and/or.
|
5
|
+
Style/AndOr:
|
6
|
+
Enabled: true
|
7
|
+
|
8
|
+
# Do not use braces for hash literals when they are the last argument of a
|
9
|
+
# method call.
|
10
|
+
Style/BracesAroundHashParameters:
|
11
|
+
Enabled: true
|
12
|
+
EnforcedStyle: context_dependent
|
13
|
+
|
14
|
+
# Align `when` with `case`.
|
15
|
+
Layout/CaseIndentation:
|
16
|
+
Enabled: true
|
17
|
+
|
18
|
+
# Align comments with method definitions.
|
19
|
+
Layout/CommentIndentation:
|
20
|
+
Enabled: true
|
21
|
+
|
22
|
+
Layout/EmptyLineAfterMagicComment:
|
23
|
+
Enabled: true
|
24
|
+
|
25
|
+
# In a regular class definition, no empty lines around the body.
|
26
|
+
Layout/EmptyLinesAroundClassBody:
|
27
|
+
Enabled: true
|
28
|
+
|
29
|
+
# In a regular method definition, no empty lines around the body.
|
30
|
+
Layout/EmptyLinesAroundMethodBody:
|
31
|
+
Enabled: true
|
32
|
+
|
33
|
+
# In a regular module definition, no empty lines around the body.
|
34
|
+
Layout/EmptyLinesAroundModuleBody:
|
35
|
+
Enabled: true
|
36
|
+
|
37
|
+
Layout/FirstParameterIndentation:
|
38
|
+
Enabled: true
|
39
|
+
|
40
|
+
# Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }.
|
41
|
+
Style/HashSyntax:
|
42
|
+
Enabled: true
|
43
|
+
|
44
|
+
# Method definitions after `private` or `protected` isolated calls need one
|
45
|
+
# extra level of indentation.
|
46
|
+
Layout/IndentationConsistency:
|
47
|
+
Enabled: true
|
48
|
+
EnforcedStyle: rails
|
49
|
+
|
50
|
+
# Two spaces, no tabs (for indentation).
|
51
|
+
Layout/IndentationWidth:
|
52
|
+
Enabled: true
|
53
|
+
|
54
|
+
Layout/SpaceAfterColon:
|
55
|
+
Enabled: true
|
56
|
+
|
57
|
+
Layout/SpaceAfterComma:
|
58
|
+
Enabled: true
|
59
|
+
|
60
|
+
Layout/SpaceAroundEqualsInParameterDefault:
|
61
|
+
Enabled: true
|
62
|
+
|
63
|
+
Layout/SpaceAroundKeyword:
|
64
|
+
Enabled: true
|
65
|
+
|
66
|
+
Layout/SpaceAroundOperators:
|
67
|
+
Enabled: true
|
68
|
+
|
69
|
+
Layout/SpaceBeforeFirstArg:
|
70
|
+
Enabled: true
|
71
|
+
|
72
|
+
# Defining a method with parameters needs parentheses.
|
73
|
+
Style/MethodDefParentheses:
|
74
|
+
Enabled: true
|
75
|
+
|
76
|
+
Style/FrozenStringLiteralComment:
|
77
|
+
Enabled: true
|
78
|
+
EnforcedStyle: always
|
79
|
+
Exclude:
|
80
|
+
- 'actionview/test/**/*.builder'
|
81
|
+
- 'actionview/test/**/*.ruby'
|
82
|
+
- 'actionpack/test/**/*.builder'
|
83
|
+
- 'actionpack/test/**/*.ruby'
|
84
|
+
- 'activestorage/db/migrate/**/*.rb'
|
85
|
+
|
86
|
+
# Use `foo {}` not `foo{}`.
|
87
|
+
Layout/SpaceBeforeBlockBraces:
|
88
|
+
Enabled: true
|
89
|
+
|
90
|
+
# Use `foo { bar }` not `foo {bar}`.
|
91
|
+
Layout/SpaceInsideBlockBraces:
|
92
|
+
Enabled: true
|
93
|
+
|
94
|
+
# Use `{ a: 1 }` not `{a:1}`.
|
95
|
+
Layout/SpaceInsideHashLiteralBraces:
|
96
|
+
Enabled: true
|
97
|
+
|
98
|
+
Layout/SpaceInsideParens:
|
99
|
+
Enabled: true
|
100
|
+
|
101
|
+
# Check quotes usage according to lint rule below.
|
102
|
+
Style/StringLiterals:
|
103
|
+
Enabled: true
|
104
|
+
EnforcedStyle: double_quotes
|
105
|
+
|
106
|
+
# Detect hard tabs, no hard tabs.
|
107
|
+
Layout/Tab:
|
108
|
+
Enabled: true
|
109
|
+
|
110
|
+
# Blank lines should not have any spaces.
|
111
|
+
Layout/TrailingBlankLines:
|
112
|
+
Enabled: true
|
113
|
+
|
114
|
+
# No trailing whitespace.
|
115
|
+
Layout/TrailingWhitespace:
|
116
|
+
Enabled: true
|
117
|
+
|
118
|
+
# Use quotes for string literals when they are enough.
|
119
|
+
Style/UnneededPercentQ:
|
120
|
+
Enabled: true
|
121
|
+
|
122
|
+
# Align `end` with the matching keyword or starting expression except for
|
123
|
+
# assignments, where it should be aligned with the LHS.
|
124
|
+
Lint/EndAlignment:
|
125
|
+
Enabled: true
|
126
|
+
EnforcedStyleAlignWith: variable
|
127
|
+
|
128
|
+
# Use my_method(my_arg) not my_method( my_arg ) or my_method my_arg.
|
129
|
+
Lint/RequireParentheses:
|
130
|
+
Enabled: true
|
data/.rubocop.yml
ADDED
data/CHANGELOG.md
ADDED
@@ -0,0 +1,90 @@
|
|
1
|
+
Workarea Authorize Cim 2.1.1 (2019-08-22)
|
2
|
+
--------------------------------------------------------------------------------
|
3
|
+
|
4
|
+
* Open Source!
|
5
|
+
|
6
|
+
|
7
|
+
|
8
|
+
Workarea Authorize Cim 2.1.0 (2018-09-04)
|
9
|
+
--------------------------------------------------------------------------------
|
10
|
+
|
11
|
+
* Pass order id on auth / purchase calls
|
12
|
+
|
13
|
+
Add order number as the invoice number on auth and purchase.
|
14
|
+
Remove tests that were pushed up stream in Workarea 3.3
|
15
|
+
|
16
|
+
AUTHORIZE-18
|
17
|
+
Eric Pigeon
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
Workarea Authorize Cim 2.0.2 (2018-08-31)
|
22
|
+
--------------------------------------------------------------------------------
|
23
|
+
|
24
|
+
* prepping v2.0.1 release
|
25
|
+
|
26
|
+
Eric Pigeon
|
27
|
+
|
28
|
+
* AUTHORIZE-17: Add proxy to gateway configuration
|
29
|
+
|
30
|
+
Andy Sides
|
31
|
+
|
32
|
+
|
33
|
+
|
34
|
+
Workarea Authorize.Net CIM 2.0.1 (2018-03-21)
|
35
|
+
--------------------------------------------------------------------------------
|
36
|
+
|
37
|
+
* Validate refund has settled transactions
|
38
|
+
|
39
|
+
remove refund in vcr tests because authorize cim can't refund until the
|
40
|
+
transaction has been settled
|
41
|
+
|
42
|
+
AUTHORIZE-12
|
43
|
+
Eric Pigeon
|
44
|
+
|
45
|
+
* Handle duplicate transaction errors in test suite
|
46
|
+
|
47
|
+
AUTHORIZE-11
|
48
|
+
Eric Pigeon
|
49
|
+
|
50
|
+
* Fix core tests
|
51
|
+
|
52
|
+
AUTHORIZE-11
|
53
|
+
Eric Pigeon
|
54
|
+
|
55
|
+
* Fix rakefile for running core tests
|
56
|
+
|
57
|
+
Fix rakefile to run the full test suite and clean up the plugin
|
58
|
+
|
59
|
+
AUTHORIZE-10
|
60
|
+
Eric Pigeon
|
61
|
+
|
62
|
+
|
63
|
+
Workarea Authorize.Net CIM 2.0.0 (2018-02-01)
|
64
|
+
--------------------------------------------------------------------------------
|
65
|
+
|
66
|
+
* Handle duplicate transaction errors in test suite
|
67
|
+
|
68
|
+
AUTHORIZE-11
|
69
|
+
Eric Pigeon
|
70
|
+
|
71
|
+
* Fix core tests
|
72
|
+
|
73
|
+
AUTHORIZE-11
|
74
|
+
Eric Pigeon
|
75
|
+
|
76
|
+
* Fix rakefile for running core tests
|
77
|
+
|
78
|
+
Fix rakefile to run the full test suite and clean up the plugin
|
79
|
+
|
80
|
+
AUTHORIZE-10
|
81
|
+
Eric Pigeon
|
82
|
+
|
83
|
+
* Upgrade plugin for v3 compatibility
|
84
|
+
|
85
|
+
- Rename to workarea-authorize_cim
|
86
|
+
- Regenerate and reconfigure dummy app to run tests
|
87
|
+
- Convert tests to use Minitest, use Mocha to mock out Authorize.Net responses
|
88
|
+
|
89
|
+
AUTHORIZE-8
|
90
|
+
Tom Scott
|
data/CODE_OF_CONDUCT.md
ADDED
data/CONTRIBUTING.md
ADDED
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
WebLinc
|
2
|
+
Business Source License
|
3
|
+
|
4
|
+
Licensor: WebLinc Corporation, 22 S. 3rd Street, 2nd Floor, Philadelphia PA 19106
|
5
|
+
|
6
|
+
Licensed Work: Workarea Commerce Platform
|
7
|
+
The Licensed Work is (c) 2019 WebLinc Corporation
|
8
|
+
|
9
|
+
Additional Use Grant:
|
10
|
+
You may make production use of the Licensed Work without an additional license agreement with WebLinc so long as you do not use the Licensed Work for a Commerce Service.
|
11
|
+
|
12
|
+
A "Commerce Service" is a commercial offering that allows third parties (other than your employees and contractors) to access the functionality of the Licensed Work by creating or managing commerce functionality, the products, taxonomy, assets and/or content of which are controlled by such third parties.
|
13
|
+
|
14
|
+
For information about obtaining an additional license agreement with WebLinc, contact licensing@workarea.com.
|
15
|
+
|
16
|
+
Change Date: 2019-08-20
|
17
|
+
|
18
|
+
Change License: Version 2.0 or later of the GNU General Public License as published by the Free Software Foundation
|
19
|
+
|
20
|
+
Terms
|
21
|
+
|
22
|
+
The Licensor hereby grants you the right to copy, modify, create derivative works, redistribute, and make non-production use of the Licensed Work. The Licensor may make an Additional Use Grant, above, permitting limited production use.
|
23
|
+
|
24
|
+
Effective on the Change Date, or the fourth anniversary of the first publicly available distribution of a specific version of the Licensed Work under this License, whichever comes first, the Licensor hereby grants you rights under the terms of the Change License, and the rights granted in the paragraph above terminate.
|
25
|
+
|
26
|
+
If your use of the Licensed Work does not comply with the requirements currently in effect as described in this License, you must purchase a commercial license from the Licensor, its affiliated entities, or authorized resellers, or you must refrain from using the Licensed Work.
|
27
|
+
|
28
|
+
All copies of the original and modified Licensed Work, and derivative works of the Licensed Work, are subject to this License. This License applies separately for each version of the Licensed Work and the Change Date may vary for each version of the Licensed Work released by Licensor.
|
29
|
+
|
30
|
+
You must conspicuously display this License on each original or modified copy of the Licensed Work. If you receive the Licensed Work in original or modified form from a third party, the terms and conditions set forth in this License apply to your use of that work.
|
31
|
+
|
32
|
+
Any use of the Licensed Work in violation of this License will automatically terminate your rights under this License for the current and all other versions of the Licensed Work.
|
33
|
+
|
34
|
+
This License does not grant you any right in any trademark or logo of Licensor or its affiliates (provided that you may use a trademark or logo of Licensor as expressly required by this License). TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON AN "AS IS" BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND TITLE. MariaDB hereby grants you permission to use this License’s text to license your works and to refer to it using the trademark "Business Source License" as long as you comply with the Covenants of Licensor below.
|
35
|
+
|
36
|
+
Covenants of Licensor
|
37
|
+
In consideration of the right to use this License’s text and the "Business Source License" name and trademark, Licensor covenants to MariaDB, and to all other recipients of the licensed work to be provided by Licensor:
|
38
|
+
|
39
|
+
To specify as the Change License the GPL Version 2.0 or any later version, or a license that is compatible with GPL Version 2.0 or a later version, where "compatible" means that software provided under the Change License can be included in a program with software provided under GPL Version 2.0 or a later version. Licensor may specify additional Change Licenses without limitation.
|
40
|
+
|
41
|
+
To either: (a) specify an additional grant of rights to use that does not impose any additional restriction on the right granted in this License, as the Additional Use Grant; or (b) insert the text "None."
|
42
|
+
|
43
|
+
To specify a Change Date.
|
44
|
+
|
45
|
+
Not to modify this License in any other way.
|
46
|
+
|
47
|
+
Notice
|
48
|
+
The Business Source License (this document, or the "License") is not an Open Source license. However, the Licensed Work will eventually be made available under an Open Source License, as stated in this License.
|
49
|
+
|
50
|
+
For more information on the use of the Business Source License generally, please visit the Adopting and Developing Business Source License FAQ.
|
51
|
+
|
52
|
+
License text copyright (c) 2017 MariaDB Corporation Ab, All Rights Reserved. "Business Source License" is a trademark of MariaDB Corporation Ab.
|
data/LICENSE.md
ADDED
data/README.md
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
# WorkArea Authorize.Net CIM Integration
|
2
|
+
|
3
|
+
Integrates the `ActiveMerchant::Billing::AuthorizeNetCimGateway` with
|
4
|
+
the WebLinc platform. Designed to be dropped in to the project as the
|
5
|
+
primary payment gateway. Uses a bogus gateway until secrets are
|
6
|
+
configured.
|
7
|
+
|
8
|
+
## Installation
|
9
|
+
|
10
|
+
The latest version of this gem supports **Workarea 3.x**.
|
11
|
+
|
12
|
+
Add this to Gemfile in your `source` block for
|
13
|
+
**https://gems.workarea.com**:
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
gem 'workarea-authorize_cim'
|
17
|
+
```
|
18
|
+
|
19
|
+
## Usage
|
20
|
+
|
21
|
+
The gem will automatically load the `BogusAuthorizeNetCimGateway` when
|
22
|
+
installed, but you can load the real-life gateway by configuring the
|
23
|
+
secrets for your environment as shown:
|
24
|
+
|
25
|
+
```yaml
|
26
|
+
authorize:
|
27
|
+
login: YOUR LOGIN
|
28
|
+
password: YOUR PASSWORD
|
29
|
+
test: true # ONLY FOR STAGING!! Uses the auth.net sandbox
|
30
|
+
```
|
31
|
+
|
32
|
+
## WebLinc Platform Documentation
|
33
|
+
|
34
|
+
See https://developer.workarea.com for WebLinc platform documentation.
|
35
|
+
|
36
|
+
## Copyright & Licensing
|
37
|
+
|
38
|
+
Copyright WebLinc 2016-2018. All rights reserved.
|
39
|
+
|
40
|
+
For licensing, contact sales@workarea.com.
|